|
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.ExponentialGen
public class ExponentialGen
This class implements random variate generators for the exponential distribution. The density is
The (non-static) nextDouble method simply calls inverseF on the distribution.
Constructor Summary | |
---|---|
ExponentialGen(RandomStream s,
double lambda)
Creates an exponential random variate generator with parameter λ = lambda, using stream s. |
|
ExponentialGen(RandomStream s,
ExponentialDist dist)
Creates a new generator for the exponential distribution dist and stream s. |
Method Summary | |
---|---|
double |
getLambda()
Returns the λ associated with this object. |
static double |
nextDouble(RandomStream s,
double lambda)
Uses inversion to generate a new exponential variate with parameter λ = lambda, using stream s. |
Methods inherited from class umontreal.iro.lecuyer.randvar.RandomVariateGen |
---|
getDistribution, getStream, nextArrayOfDouble, nextDouble, setStream, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ExponentialGen(RandomStream s, double lambda)
public ExponentialGen(RandomStream s, ExponentialDist dist)
Method Detail |
---|
public static double nextDouble(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 |