public class PoissonGen extends RandomVariateGenInt
No local copy of the parameter λ = lambda is maintained in this class. The (non-static) nextInt method simply calls inverseF on the distribution.
| Constructor and Description |
|---|
PoissonGen(RandomStream s,
double lambda)
Creates a Poisson random variate generator with
parameter λ = lambda, using stream s.
|
PoissonGen(RandomStream s,
PoissonDist dist)
Creates a new random variate generator using the Poisson
distribution dist and stream s.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getLambda()
Returns the λ associated with this object.
|
static int |
nextInt(RandomStream s,
double lambda)
A static method for generating a random variate from a
Poisson distribution with parameter λ = lambda.
|
getDistribution, nextArrayOfInt, nextIntgetStream, nextArrayOfDouble, nextDouble, setStreampublic PoissonGen(RandomStream s, double lambda)
public PoissonGen(RandomStream s, PoissonDist dist)
public static int nextInt(RandomStream s, double lambda)
public double getLambda()
To submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.