com.rapidminer.tools.math.distribution
Interface Distribution

All Superinterfaces:
java.io.Serializable
All Known Subinterfaces:
EmpiricalDistribution
All Known Implementing Classes:
ContinuousDistribution, DiscreteDistribution, EmpiricalNormalDistribution, FullKernelDistribution, GreedyKernelDistribution, KernelDistribution, NormalDistribution, NormalKernel

public interface Distribution
extends java.io.Serializable

The basic interface for all distributions of variables.

Author:
Tobias Malbrecht

Method Summary
 java.lang.String getAttributeName()
           
 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.
 boolean isContinuous()
           
 boolean isDiscrete()
           
 java.lang.String mapValue(double value)
          this method should return a string representation of the given value.
 java.lang.String toString()
          Should return an textual representation of the distribution.
 

Method Detail

isDiscrete

boolean isDiscrete()

isContinuous

boolean isContinuous()

getAttributeName

java.lang.String getAttributeName()

getProbability

double getProbability(double value)
This method returns the density of the given distribution at the specified value.

Parameters:
value - the value which density shall be returned

mapValue

java.lang.String mapValue(double value)
this method should return a string representation of the given value. Numerical Attributes might return a string representation of the value.

Parameters:
value -

toString

java.lang.String toString()
Should return an textual representation of the distribution.

Overrides:
toString in class java.lang.Object

getNumberOfParameters

int getNumberOfParameters()
This should return the number of parameters defining this distribution


getParameterName

java.lang.String getParameterName(int index)
This method should return the name of the i-th parameter


getParameterValue

double getParameterValue(int index)
This method should return the value of the i-th parameter



Copyright © 2001-2009 by Rapid-I