public class PoissonRandomVariable extends AbstractDiscreteRandomVariable
A random variable generator for the Poisson distribution.
References:
Constructor and Description |
---|
PoissonRandomVariable()
Default constructor.
|
PoissonRandomVariable(double m)
Create a random variable with the given mean.
|
PoissonRandomVariable(double m,
RNG source)
Create a random variable with the given parameters.
|
Modifier and Type | Method and Description |
---|---|
int |
nextRandomVariable()
Access the next random variable from this generator.
|
static int |
nextRandomVariable(double m,
RNG source)
Access the next random variable using the given generator.
|
public PoissonRandomVariable()
public PoissonRandomVariable(double m)
m
- the mean.public PoissonRandomVariable(double m, RNG source)
m
- the mean.source
- the source generator.public static int nextRandomVariable(double m, RNG source)
m
- the mean.source
- the source generator.public int nextRandomVariable()
Jas4pp 1.5 © Java Analysis Studio for Particle Physics