public class LogNormalRng extends java.lang.Object implements RandomNumberGenerator
dlnorm, plnorm, qlnorm, rlnorm.| Constructor and Description |
|---|
LogNormalRng(double logMean,
double logSigma)
Construct a random number generator to sample from the log-normal distribution.
|
LogNormalRng(NormalRng rnorm)
Construct a random number generator to sample from the log-normal distribution.
|
| Modifier and Type | Method and Description |
|---|---|
double |
nextDouble()
Get the next random
double. |
void |
seed(long... seeds)
Seed the random number generator to produce repeatable sequences.
|
public LogNormalRng(NormalRng rnorm)
rnorm - a random number generator that samples from the normal distributionpublic LogNormalRng(double logMean,
double logSigma)
logMean - the log of meanlogSigma - the log of standard deviationpublic void seed(long... seeds)
RandomNumberGeneratorseed in interface RandomNumberGeneratorseeds - the seedspublic double nextDouble()
RandomNumberGeneratordouble.nextDouble in interface RandomNumberGenerator