public class GaussianRandomGenerator extends java.lang.Object implements NormalizedRandomGenerator
This class is a simple wrapper around the RandomGenerator.nextGaussian() method.
| Modifier and Type | Field and Description |
|---|---|
private RandomGenerator |
generator
Underlying generator.
|
| Constructor and Description |
|---|
GaussianRandomGenerator(RandomGenerator generator)
Create a new generator.
|
| Modifier and Type | Method and Description |
|---|---|
double |
nextNormalizedDouble()
Generate a random scalar with null mean and unit standard deviation.
|
private final RandomGenerator generator
public GaussianRandomGenerator(RandomGenerator generator)
generator - underlying random generator to usepublic double nextNormalizedDouble()
nextNormalizedDouble in interface NormalizedRandomGeneratorCopyright (c) 2003-2013 Apache Software Foundation