public class PoissonTIACGen extends PoissonGen
PoissonGen).
Uses the tabulated inversion combined with the acceptance complement
(TIAC) method of.
The implementation is adapted from UNURAN.| Constructor and Description |
|---|
PoissonTIACGen(RandomStream s,
double lambda)
Creates a Poisson random variate generator with
parameter λ = lambda, using stream s.
|
PoissonTIACGen(RandomStream s,
PoissonDist dist)
Creates a new random variate generator using the Poisson
distribution dist and stream s.
|
| Modifier and Type | Method and Description |
|---|---|
int |
nextInt()
Generates a random number (an integer) from the discrete
distribution contained in this object.
|
static int |
nextInt(RandomStream s,
double lambda) |
getLambdagetDistribution, nextArrayOfIntgetStream, nextArrayOfDouble, nextDouble, setStreampublic PoissonTIACGen(RandomStream s, double lambda)
public PoissonTIACGen(RandomStream s, PoissonDist dist)
public int nextInt()
RandomVariateGenIntnextInt in class RandomVariateGenIntpublic static int nextInt(RandomStream s, double lambda)
To submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.