org.apache.commons.math3.random

## Class GaussianRandomGenerator

- java.lang.Object
- - org.apache.commons.math3.random.GaussianRandomGenerator

- All Implemented Interfaces:
    NormalizedRandomGenerator

      public class GaussianRandomGenerator
      extends 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
  Version:
    $Id: GaussianRandomGenerator.java 1244107 2012-02-14 16:17:55Z erans $

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `GaussianRandomGenerator(RandomGenerator generator)` Create a new generator.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `double` | `nextNormalizedDouble()` 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

    - #### 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 interface `NormalizedRandomGenerator`
      Returns:
        a random scalar with null mean and unit standard deviation

Copyright © 2003-2012 The Apache Software Foundation. All Rights Reserved.