|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.spaceroots.mantissa.random.GaussianRandomGenerator
This class is a gaussian normalized random generator for scalars.
This class is a simple interface adaptor around the MersenneTwister generator, which calls its nextGaussian method.
MersenneTwister,
Serialized Form| Constructor Summary | |
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. |
|
| Method Summary | |
double |
nextDouble()
Generate a random scalar with null mean and unit standard deviation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
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)| Method Detail |
public double nextDouble()
nextDouble in interface NormalizedRandomGenerator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||