|
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.LognormalGen
public class LognormalGen
This class implements methods for generating random variates from the lognormal distribution. Its density is
The (non-static) nextDouble method simply calls inverseF on the lognormal distribution object. One can also generate a lognormal random variate X via
Constructor Summary | |
---|---|
LognormalGen(RandomStream s)
Creates a lognormal random variate generator with parameters μ = 0 and σ = 1, using stream s. |
|
LognormalGen(RandomStream s,
double mu,
double sigma)
Creates a lognormal random variate generator with parameters μ = mu and σ = sigma, using stream s. |
|
LognormalGen(RandomStream s,
LognormalDist dist)
Create a random variate generator for the lognormal distribution dist and stream s. |
Method Summary | |
---|---|
double |
getMu()
Returns the parameter μ of this object. |
double |
getSigma()
Returns the parameter σ of this object. |
static double |
nextDouble(RandomStream s,
double mu,
double sigma)
Generates a new variate from the lognormal distribution with parameters μ = mu and σ = sigma, 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 LognormalGen(RandomStream s, double mu, double sigma)
public LognormalGen(RandomStream s)
public LognormalGen(RandomStream s, LognormalDist dist)
Method Detail |
---|
public static double nextDouble(RandomStream s, double mu, double sigma)
public double getMu()
public double getSigma()
|
SSJ V. 2.6.2. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |