public class Poisson extends UnivariateSequenceGenerator
Constructor and Description |
---|
Poisson(double dblLambda)
Construct a Poisson Random Number Generator
|
Modifier and Type | Method and Description |
---|---|
double |
lambda()
Retrieve Lambda
|
double |
random()
Generate a Random Number according to the specified rule
|
SingleSequenceAgnosticMetrics |
sequence(int iNumEntry,
R1 distPopulation)
Generate a Random Sequence along with its Metrics
|
sequence
public Poisson(double dblLambda) throws java.lang.Exception
dblLambda
- Lambdajava.lang.Exception
- Thrown if the inputs are invalidpublic double lambda()
public double random()
UnivariateSequenceGenerator
random
in class UnivariateSequenceGenerator
public SingleSequenceAgnosticMetrics sequence(int iNumEntry, R1 distPopulation)
UnivariateSequenceGenerator
sequence
in class UnivariateSequenceGenerator
iNumEntry
- Number of Entries in the SequencedistPopulation
- The True Underlying Generator Distribution of the Population