public class Knuth1969 extends java.lang.Object implements RandomNumberGenerator
| Constructor and Description |
|---|
Knuth1969(double lambda)
Construct a random number generator to sample from the Poisson distribution.
|
Knuth1969(double lambda,
RandomLongGenerator uniform)
Construct a random number generator to sample from the Poisson distribution.
|
| Modifier and Type | Method and Description |
|---|---|
double |
nextDouble()
Get the next random
double. |
void |
seed(long... seeds)
Seed the random number generator to produce repeatable sequences.
|
public Knuth1969(double lambda,
RandomLongGenerator uniform)
lambda - the shape parameteruniform - a uniform random number generatorpublic Knuth1969(double lambda)
lambda - the shape parameterpublic void seed(long... seeds)
RandomNumberGeneratorseed in interface RandomNumberGeneratorseeds - the seedspublic double nextDouble()
RandomNumberGeneratordouble.nextDouble in interface RandomNumberGenerator