Package org.apache.commons.math.random
Class GaussianRandomGenerator
- java.lang.Object
-
- org.apache.commons.math.random.GaussianRandomGenerator
-
- All Implemented Interfaces:
NormalizedRandomGenerator
public class GaussianRandomGenerator extends java.lang.Object implements NormalizedRandomGenerator
This class is a gaussian normalized random generator for scalars.This class is a simple wrapper around the
RandomGenerator.nextGaussian()
method.- Since:
- 1.2
-
-
Constructor Summary
Constructors Constructor Description GaussianRandomGenerator(RandomGenerator generator)
Create a new generator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
nextNormalizedDouble()
Generate a random scalar with null mean and unit standard deviation.
-
-
-
Constructor Detail
-
GaussianRandomGenerator
public GaussianRandomGenerator(RandomGenerator generator)
Create a new generator.- Parameters:
generator
- underlying random generator to use
-
-
Method Detail
-
nextNormalizedDouble
public double nextNormalizedDouble()
Generate a random scalar with null mean and unit standard deviation.- Specified by:
nextNormalizedDouble
in interfaceNormalizedRandomGenerator
- Returns:
- a random scalar with null mean and unit standard deviation
-
-