public class NormalRandomNumberGenerator extends Object implements RandomNumberGenerator
ProbabilityDistribution.| Constructor and Description |
|---|
NormalRandomNumberGenerator(double mean,
double sigma)
Creates an instance.
|
NormalRandomNumberGenerator(double mean,
double sigma,
RandomEngine engine)
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
double[] |
getVector(int size)
Gets an array of random numbers.
|
List<double[]> |
getVectors(int arraySize,
int listSize)
Gets a list of random number arrays.
|
public NormalRandomNumberGenerator(double mean,
double sigma)
mean - the meansigma - the sigmapublic NormalRandomNumberGenerator(double mean,
double sigma,
RandomEngine engine)
mean - the meansigma - the sigmaengine - the random number enginepublic double[] getVector(int size)
RandomNumberGeneratorgetVector in interface RandomNumberGeneratorsize - the size of the resulting arraypublic List<double[]> getVectors(int arraySize, int listSize)
RandomNumberGeneratorgetVectors in interface RandomNumberGeneratorarraySize - the size of each resulting arraylistSize - the size of the listCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.