org.jdmp.core.algorithm.estimator
Class DiscreteDensityEstimator

java.lang.Object
  extended by org.jdmp.core.algorithm.estimator.DiscreteDensityEstimator
All Implemented Interfaces:
DensityEstimator

public class DiscreteDensityEstimator
extends Object
implements DensityEstimator


Constructor Summary
DiscreteDensityEstimator(int nmbVals, boolean laplace)
           
DiscreteDensityEstimator(int nmbVals, double correction)
           
 
Method Summary
 void addValue(double val, double weight)
           
 void addValue(int val)
           
 double getProbability(double val)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiscreteDensityEstimator

public DiscreteDensityEstimator(int nmbVals,
                                boolean laplace)

DiscreteDensityEstimator

public DiscreteDensityEstimator(int nmbVals,
                                double correction)
Method Detail

addValue

public void addValue(double val,
                     double weight)
Specified by:
addValue in interface DensityEstimator

addValue

public void addValue(int val)
Specified by:
addValue in interface DensityEstimator

getProbability

public double getProbability(double val)
Specified by:
getProbability in interface DensityEstimator


Copyright © 2009. All Rights Reserved.