Top Description Fields Constructors Methods
org.apache.commons.math3.random

public Class GaussianRandomGenerator

extends Object
implements NormalizedRandomGenerator
Class Inheritance
All Implemented Interfaces
org.apache.commons.math3.random.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

Field Summary

Modifier and TypeField and Description
private final RandomGenerator
generator

Underlying generator.

Constructor Summary

AccessConstructor and Description
public
GaussianRandomGenerator(final RandomGenerator
underlying random generator to use
generator
)

Create a new generator.

Method Summary

Modifier and TypeMethod and Description
public double

Returns:

a random scalar with null mean and unit standard deviation
nextNormalizedDouble
()

Implements org.apache.commons.math3.random.NormalizedRandomGenerator.nextNormalizedDouble.

Generate a random scalar with null mean and unit standard deviation.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

generatorback to summary
private final RandomGenerator generator

Underlying generator.

Constructor Detail

GaussianRandomGeneratorback to summary
public GaussianRandomGenerator(final RandomGenerator generator)

Create a new generator.

Parameters
generator:RandomGenerator

underlying random generator to use

Method Detail

nextNormalizedDoubleback to summary
public double nextNormalizedDouble()

Implements org.apache.commons.math3.random.NormalizedRandomGenerator.nextNormalizedDouble.

Generate a random scalar with null mean and unit standard deviation.

Returns:double

a random scalar with null mean and unit standard deviation