Package weka.estimators
Interface UnivariateDensityEstimator
- All Superinterfaces:
RevisionHandler
- All Known Implementing Classes:
UnivariateEqualFrequencyHistogramEstimator
,UnivariateKernelEstimator
,UnivariateMixtureEstimator
,UnivariateNormalEstimator
Interface that can be implemented by simple weighted univariate
density estimators.
- Version:
- $Revision: 11318 $
- Author:
- Eibe Frank (eibe@cs.waikato.ac.nz)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addValue
(double value, double weight) Adds a value to the density estimator.double
logDensity
(double value) Returns the natural logarithm of the density estimate at the given point.Methods inherited from interface weka.core.RevisionHandler
getRevision
-
Method Details
-
addValue
void addValue(double value, double weight) Adds a value to the density estimator.- Parameters:
value
- the value to addweight
- the weight of the value
-
logDensity
double logDensity(double value) Returns the natural logarithm of the density estimate at the given point.- Parameters:
value
- the value at which to evaluate- Returns:
- the natural logarithm of the density estimate at the given value
-