org.apache.mahout.math.jet.random
Class Normal

java.lang.Object
  extended by org.apache.mahout.math.PersistentObject
      extended by org.apache.mahout.math.jet.random.AbstractDistribution
          extended by org.apache.mahout.math.jet.random.AbstractContinousDistribution
              extended by org.apache.mahout.math.jet.random.Normal
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, DoubleFunction, IntFunction, UnaryFunction

Deprecated. until unit tests are in place. Until this time, this class/interface is unsupported.

@Deprecated
public class Normal
extends AbstractContinousDistribution

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.mahout.math.jet.random.AbstractDistribution
randomGenerator
 
Constructor Summary
Normal(double mean, double standardDeviation, RandomEngine randomGenerator)
          Deprecated. Constructs a normal (gauss) distribution.
 
Method Summary
 double cdf(double x)
          Deprecated. Returns the cumulative distribution function.
 double nextDouble()
          Deprecated. Returns a random number from the distribution.
 double nextDouble(double mean, double standardDeviation)
          Deprecated. Returns a random number from the distribution; bypasses the internal state.
 double pdf(double x)
          Deprecated. Returns the probability distribution function.
protected  void setRandomGenerator(RandomEngine randomGenerator)
          Deprecated. Sets the uniform random generator internally used.
 void setState(double mean, double standardDeviation)
          Deprecated. Sets the mean and variance.
static double staticNextDouble(double mean, double standardDeviation)
          Deprecated. Returns a random number from the distribution with the given mean and standard deviation.
 java.lang.String toString()
          Deprecated. Returns a String representation of the receiver.
 
Methods inherited from class org.apache.mahout.math.jet.random.AbstractDistribution
apply, apply, clone, getRandomGenerator, makeDefaultGenerator, nextByte, nextChar, nextFloat, nextInt, nextLong
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Normal

public Normal(double mean,
              double standardDeviation,
              RandomEngine randomGenerator)
Deprecated. 
Constructs a normal (gauss) distribution. Example: mean=0.0, standardDeviation=1.0.

Method Detail

cdf

public double cdf(double x)
Deprecated. 
Returns the cumulative distribution function.


nextDouble

public double nextDouble()
Deprecated. 
Returns a random number from the distribution.

Specified by:
nextDouble in class AbstractDistribution

nextDouble

public double nextDouble(double mean,
                         double standardDeviation)
Deprecated. 
Returns a random number from the distribution; bypasses the internal state.


pdf

public double pdf(double x)
Deprecated. 
Returns the probability distribution function.


setRandomGenerator

protected void setRandomGenerator(RandomEngine randomGenerator)
Deprecated. 
Sets the uniform random generator internally used.

Overrides:
setRandomGenerator in class AbstractDistribution

setState

public void setState(double mean,
                     double standardDeviation)
Deprecated. 
Sets the mean and variance.


staticNextDouble

public static double staticNextDouble(double mean,
                                      double standardDeviation)
Deprecated. 
Returns a random number from the distribution with the given mean and standard deviation.


toString

public java.lang.String toString()
Deprecated. 
Returns a String representation of the receiver.

Overrides:
toString in class java.lang.Object


Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.