public class LogNormalRNG extends 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/vector/scenario generator to produce repeatable experiments.
|
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)
Seedablepublic double nextDouble()
RandomNumberGeneratordouble.nextDouble in interface RandomNumberGeneratorCopyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.