|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.estimators.UnivariateKernelEstimator
public class UnivariateKernelEstimator
Simple weighted kernel density estimator.
Field Summary | |
---|---|
static double |
CONST
Constant for Gaussian density. |
Constructor Summary | |
---|---|
UnivariateKernelEstimator()
|
Method Summary | |
---|---|
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. |
static void |
main(String[] args)
Main method, used for testing this class. |
double[][] |
predictIntervals(double conf)
Returns the interval for the given confidence value. |
double |
predictQuantile(double percentage)
Returns the quantile for the given percentage. |
String |
toString()
Returns textual description of this estimator. |
void |
updateWidth()
Updates bandwidth: the sample standard deviation is multiplied by the total weight to the power of the given exponent. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final double CONST
Constructor Detail |
---|
public UnivariateKernelEstimator()
Method Detail |
---|
public void addValue(double value, double weight)
addValue
in interface UnivariateDensityEstimator
addValue
in interface UnivariateIntervalEstimator
addValue
in interface UnivariateQuantileEstimator
value
- the value to addweight
- the weight of the valuepublic void updateWidth()
public double[][] predictIntervals(double conf)
predictIntervals
in interface UnivariateIntervalEstimator
conf
- the confidence value in the interval [0, 1]
public double predictQuantile(double percentage)
predictQuantile
in interface UnivariateQuantileEstimator
percentage
- the percentage
public double logDensity(double value)
logDensity
in interface UnivariateDensityEstimator
value
- the value at which to evaluate
public String toString()
toString
in class Object
public static void main(String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |