com.rapidminer.tools.math.distribution.kernel
Class GreedyKernelDistribution

java.lang.Object
  extended by com.rapidminer.tools.math.distribution.ContinuousDistribution
      extended by com.rapidminer.tools.math.distribution.kernel.KernelDistribution
          extended by com.rapidminer.tools.math.distribution.kernel.GreedyKernelDistribution
All Implemented Interfaces:
Distribution, EmpiricalDistribution, java.io.Serializable

public class GreedyKernelDistribution
extends KernelDistribution

An updatable estimated kernel density distribution. Update strategy greedily creates and merges kernels and assigns value to these kernels.

Author:
Tobias Malbrecht
See Also:
Serialized Form

Field Summary
static long serialVersionUID
           
 
Fields inherited from class com.rapidminer.tools.math.distribution.kernel.KernelDistribution
DEFAULT_BANDWIDTH
 
Constructor Summary
GreedyKernelDistribution()
           
GreedyKernelDistribution(double minBandwidth, int numberOfKernels)
           
 
Method Summary
 java.lang.String getAttributeName()
           
 double getLowerBound()
          This method returns a lower bound of values.
 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.
 double getTotalWeight()
           
 double getUpperBound()
          This method returns an upper bound of possible values.
 java.lang.String toString()
          Should return an textual representation of the distribution.
 void update(double value)
           
 void update(double value, double weight)
           
 
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
 
Methods inherited from interface com.rapidminer.tools.math.distribution.Distribution
isContinuous, isDiscrete, mapValue
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

GreedyKernelDistribution

public GreedyKernelDistribution()

GreedyKernelDistribution

public GreedyKernelDistribution(double minBandwidth,
                                int numberOfKernels)
Method Detail

update

public void update(double value,
                   double weight)

update

public void update(double value)

getAttributeName

public java.lang.String getAttributeName()
Specified by:
getAttributeName in interface Distribution
Overrides:
getAttributeName in class KernelDistribution

getNumberOfParameters

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

Specified by:
getNumberOfParameters in interface Distribution
Overrides:
getNumberOfParameters in class KernelDistribution

getParameterName

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

Specified by:
getParameterName in interface Distribution
Overrides:
getParameterName in class KernelDistribution

getParameterValue

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

Specified by:
getParameterValue in interface Distribution
Overrides:
getParameterValue in class KernelDistribution

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

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

getTotalWeight

public double getTotalWeight()

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

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 KernelDistribution


Copyright © 2001-2009 by Rapid-I