public class NormalRNG extends 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,
RandomStandardNormalGenerator 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/vector/scenario generator to produce repeatable experiments.
|
public NormalRNG(double mean, double sigma, RandomStandardNormalGenerator 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)
Seedable
public double nextDouble()
RandomNumberGenerator
double
.nextDouble
in interface RandomNumberGenerator
Copyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.