Package weka.estimators

# Interface UnivariateDensityEstimator

All Superinterfaces:
  `RevisionHandler`

All Known Implementing Classes:
  `UnivariateEqualFrequencyHistogramEstimator`, `UnivariateKernelEstimator`, `UnivariateMixtureEstimator`, `UnivariateNormalEstimator`

public interface UnivariateDensityEstimator extends RevisionHandler
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 Type
  Method
  Description
  `void`
  `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 add
      `weight` - 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