org.jdmp.core.algorithm.estimator
Class DiscreteDensityEstimator
java.lang.Object
org.jdmp.core.algorithm.estimator.DiscreteDensityEstimator
- All Implemented Interfaces:
- DensityEstimator
public class DiscreteDensityEstimator
- extends Object
- implements DensityEstimator
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DiscreteDensityEstimator
public DiscreteDensityEstimator(int nmbVals,
boolean laplace)
DiscreteDensityEstimator
public DiscreteDensityEstimator(int nmbVals,
double correction)
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.