public class Knuth1969 extends 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/vector/scenario generator to produce repeatable experiments.
|
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)
Seedable
public double nextDouble()
RandomNumberGenerator
double
.nextDouble
in interface RandomNumberGenerator
Copyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.