com.rapidminer.tools.math.distribution
Class NormalDistribution

java.lang.Object
  extended by com.rapidminer.tools.math.distribution.ContinuousDistribution
      extended by com.rapidminer.tools.math.distribution.NormalDistribution
All Implemented Interfaces:
Distribution, java.io.Serializable
Direct Known Subclasses:
EmpiricalNormalDistribution

public class NormalDistribution
extends ContinuousDistribution

This class represents a gaussian normal distribution.

Version:
$Id: NormalDistribution.java,v 1.3.2.3 2009-04-08 14:40:23 tobiasmalbrecht Exp $ ======= >>>>>>> 1.3.2.2
Author:
Tobias Malbrecht, Sebastian Land <<<<<<< NormalDistribution.java
See Also:
Serialized Form

Field Summary
protected  double mean
           
protected  double standardDeviation
           
 
Constructor Summary
NormalDistribution(double mean, double standardDeviation)
           
 
Method Summary
 java.lang.String getAttributeName()
           
static double getLogProbability(double mean, double standardDeviation, double value)
           
 double getLowerBound()
          This method returns a lower bound of values.
static double getLowerBound(double mean, double standardDeviation)
           
 double getMean()
           
 int getNumberOfParameters()
          This should return the number of parameters defining this distribution
 java.lang.String getParameterName(int index)
          This method should return the name of the i-th parameter
 double getParameterValue(int index)
          This method should return the value of the i-th parameter
 double getProbability(double value)
          This method returns the density of the given distribution at the specified value.
static double getProbability(double mean, double standardDeviation, double value)
           
 double getStandardDeviation()
           
 double getUpperBound()
          This method returns an upper bound of possible values.
static double getUpperBound(double mean, double standardDeviation)
           
 double getVariance()
           
 java.lang.String toString()
          Should return an textual representation of the distribution.
 
Methods inherited from class com.rapidminer.tools.math.distribution.ContinuousDistribution
isContinuous, isDiscrete, mapValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

mean

protected double mean

standardDeviation

protected double standardDeviation
Constructor Detail

NormalDistribution

public NormalDistribution(double mean,
                          double standardDeviation)
Method Detail

getAttributeName

public java.lang.String getAttributeName()

getProbability

public static double getProbability(double mean,
                                    double standardDeviation,
                                    double value)

getLogProbability

public static double getLogProbability(double mean,
                                       double standardDeviation,
                                       double value)

getLowerBound

public static final double getLowerBound(double mean,
                                         double standardDeviation)

getUpperBound

public static final double getUpperBound(double mean,
                                         double standardDeviation)

getProbability

public double getProbability(double value)
Description copied from interface: Distribution
This method returns the density of the given distribution at the specified value.

Specified by:
getProbability in interface Distribution
Specified by:
getProbability in class ContinuousDistribution
Parameters:
value - the value which density shall be returned

getMean

public double getMean()

getStandardDeviation

public double getStandardDeviation()

getVariance

public double getVariance()

getLowerBound

public double getLowerBound()
Description copied from class: ContinuousDistribution
This method returns a lower bound of values. This bound should be given by the distributions tail, for example bounds should contain 95% interval. Nominal distributions should return NaN.

Specified by:
getLowerBound in class ContinuousDistribution

getUpperBound

public double getUpperBound()
Description copied from class: ContinuousDistribution
This method returns an upper bound of possible values. This bound should be given by the distributions tail, for example bounds should contain 95% interval. Nominal distributions should return NaN.

Specified by:
getUpperBound in class ContinuousDistribution

toString

public java.lang.String toString()
Description copied from interface: Distribution
Should return an textual representation of the distribution.

Specified by:
toString in interface Distribution
Overrides:
toString in class java.lang.Object

getNumberOfParameters

public int getNumberOfParameters()
Description copied from interface: Distribution
This should return the number of parameters defining this distribution


getParameterName

public java.lang.String getParameterName(int index)
Description copied from interface: Distribution
This method should return the name of the i-th parameter


getParameterValue

public double getParameterValue(int index)
Description copied from interface: Distribution
This method should return the value of the i-th parameter



Copyright © 2001-2009 by Rapid-I