public class GaussianRandomGenerator extends java.lang.Object implements NormalizedRandomGenerator
This class is a simple interface adaptor around the MersenneTwister generator, which calls its nextGaussian method.
MersenneTwister,
Serialized Form| Constructor and Description |
|---|
GaussianRandomGenerator()
Create a new generator.
|
GaussianRandomGenerator(int seed)
Creates a new random number generator using a single int seed.
|
GaussianRandomGenerator(int[] seed)
Creates a new random number generator using an int array seed.
|
GaussianRandomGenerator(long seed)
Create a new generator initialized with a single long seed.
|
| Modifier and Type | Method and Description |
|---|---|
double |
nextDouble()
Generate a random scalar with null mean and unit standard deviation.
|
public GaussianRandomGenerator()
public GaussianRandomGenerator(int seed)
seed - the initial seed (32 bits integer)public GaussianRandomGenerator(int[] seed)
seed - the initial seed (32 bits integers array), if null
the seed of the generator will be related to the current timepublic GaussianRandomGenerator(long seed)
seed - seed for the generator (64 bits integer)public double nextDouble()
nextDouble in interface NormalizedRandomGeneratorCopyright © 2001-2007 Luc Maisonobe. All Rights Reserved.