com.rapidminer.tools.math.distribution
Class ContinuousDistribution

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

public abstract class ContinuousDistribution
extends java.lang.Object
implements Distribution

The distribution for a continous variable.

Author:
Tobias Malbrecht
See Also:
Serialized Form

Constructor Summary
ContinuousDistribution()
           
 
Method Summary
abstract  double getLowerBound()
          This method returns a lower bound of values.
abstract  double getProbability(double x)
          This method returns the density of the given distribution at the specified value.
abstract  double getUpperBound()
          This method returns an upper bound of possible values.
 boolean isContinuous()
           
 boolean isDiscrete()
           
 java.lang.String mapValue(double value)
          this method should return a string representation of the given value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.rapidminer.tools.math.distribution.Distribution
getAttributeName, getNumberOfParameters, getParameterName, getParameterValue, toString
 

Constructor Detail

ContinuousDistribution

public ContinuousDistribution()
Method Detail

isDiscrete

public final boolean isDiscrete()
Specified by:
isDiscrete in interface Distribution

isContinuous

public final boolean isContinuous()
Specified by:
isContinuous in interface Distribution

getProbability

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

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

getLowerBound

public abstract double getLowerBound()
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.


getUpperBound

public abstract double getUpperBound()
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.


mapValue

public java.lang.String mapValue(double value)
Description copied from interface: Distribution
this method should return a string representation of the given value. Numerical Attributes might return a string representation of the value.

Specified by:
mapValue in interface Distribution


Copyright © 2001-2009 by Rapid-I