public class LognormalGen extends RandomVariateGen
The (non-static) nextDouble method simply calls inverseF on the lognormal distribution object. One can also generate a lognormal random variate X via
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
getDistribution, getStream, nextArrayOfDouble, nextDouble, setStreampublic LognormalGen(RandomStream s, double mu, double sigma)
public LognormalGen(RandomStream s)
public LognormalGen(RandomStream s, LognormalDist dist)
public static double nextDouble(RandomStream s, double mu, double sigma)
public double getMu()
public double getSigma()
To submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.