Package org.hipparchus.random
Class GaussianRandomGenerator
java.lang.Object
org.hipparchus.random.GaussianRandomGenerator
- All Implemented Interfaces:
NormalizedRandomGenerator
This class is a gaussian normalized random generator for scalars.
This class is a simple wrapper around the RandomGenerator.nextGaussian()
method.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
Generate a random scalar with null mean and unit standard deviation.
-
Constructor Details
-
GaussianRandomGenerator
Create a new generator.- Parameters:
generator
- underlying random generator to use
-
-
Method Details
-
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
-