gggt.eg.dst
Class Gaussian

java.lang.Object
  extended by java.util.Random
      extended by gggt.eg.dst.Gaussian
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
Distort

public class Gaussian
extends java.util.Random

The Gaussian class.

See Also:
Serialized Form

Constructor Summary
Gaussian()
          Constructor with var equals to 1.
Gaussian(double var)
          Constructor with a var parametter.
 
Method Summary
 double getVar()
          To return the var value.
 double nextValue()
          To return a double according a gaussian probability.
 
Methods inherited from class java.util.Random
nextBoolean, nextBytes, nextDouble, nextFloat, nextGaussian, nextInt, nextInt, nextLong, setSeed
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Gaussian

public Gaussian(double var)
Constructor with a var parametter.


Gaussian

public Gaussian()
Constructor with var equals to 1.

Method Detail

getVar

public double getVar()
To return the var value.


nextValue

public double nextValue()
To return a double according a gaussian probability.