public class NormalRng extends java.lang.Object implements RandomNumberGenerator
| Constructor and Description |
|---|
NormalRng(double mean,
double sigma)
Construct a random number generator to sample from the Normal distribution.
|
NormalRng(double mean,
double sigma,
RandomStandardNormalNumberGenerator rnorm)
Construct a random number generator to sample from the 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 NormalRng(double mean,
double sigma,
RandomStandardNormalNumberGenerator rnorm)
mean - the meansigma - the standard deviationrnorm - a standard random normal number generatorpublic NormalRng(double mean,
double sigma)
mean - the meansigma - the standard deviationpublic void seed(long... seeds)
RandomNumberGeneratorseed in interface RandomNumberGeneratorseeds - the seedspublic double nextDouble()
RandomNumberGeneratordouble.nextDouble in interface RandomNumberGenerator