|
SSJ V. 2.6.2. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object umontreal.iro.lecuyer.randvar.RandomVariateGen umontreal.iro.lecuyer.randvar.RandomVariateGenInt umontreal.iro.lecuyer.randvar.PoissonGen
public class PoissonGen
This class implements random variate generators having the Poisson distribution. Its mass function is
No local copy of the parameter λ = lambda is maintained in this class. The (non-static) nextInt method simply calls inverseF on the distribution.
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class umontreal.iro.lecuyer.randvar.RandomVariateGenInt |
---|
getDistribution, nextArrayOfInt, nextInt |
Methods inherited from class umontreal.iro.lecuyer.randvar.RandomVariateGen |
---|
getStream, nextArrayOfDouble, nextDouble, setStream, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PoissonGen(RandomStream s, double lambda)
public PoissonGen(RandomStream s, PoissonDist dist)
Method Detail |
---|
public static int nextInt(RandomStream s, double lambda)
public double getLambda()
|
SSJ V. 2.6.2. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |