25package umontreal.ssj.randvar;
27import umontreal.ssj.probdist.*;
28import umontreal.ssj.rng.*;
47 protected double lambda;
89 throw new IllegalArgumentException(
"lambda <= 0");
Extends the class DiscreteDistributionInt for the Poisson distribution slaw00a (page 325) with mean.
static int inverseF(double lambda, double u)
Performs a linear search to get the inverse function without precomputed tables.
double getLambda()
Returns the associated with this object.
PoissonGen(RandomStream s, double lambda)
Creates a Poisson random variate generator with parameter.
void setParams(double lam)
Sets the parameter lam of this object.
static int nextInt(RandomStream s, double lambda)
A static method for generating a random variate from a Poisson distribution with parameter = lambda.
PoissonGen(RandomStream s, PoissonDist dist)
Creates a new random variate generator using the Poisson distribution dist and stream s.
This interface defines the basic structures to handle multiple streams of uniform (pseudo)random numb...
double nextDouble()
Returns a (pseudo)random number from the uniform distribution over the interval , using this stream,...