|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.estimators.UnivariateNormalEstimator
public class UnivariateNormalEstimator
Simple weighted normal density estimator.
| Field Summary | |
|---|---|
static double |
CONST
Constant for Gaussian density |
| Constructor Summary | |
|---|---|
UnivariateNormalEstimator()
|
|
| 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(java.lang.String[] args)
Main method, used for testing this class. |
double[][] |
predictIntervals(double conf)
Returns the interval for the given confidence value. |
java.lang.String |
toString()
Returns textual description of this estimator. |
| 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 UnivariateNormalEstimator()
| Method Detail |
|---|
public void addValue(double value,
double weight)
addValue in interface UnivariateDensityEstimatoraddValue in interface UnivariateIntervalEstimatorvalue - the value to addweight - the weight of the valuepublic double[][] predictIntervals(double conf)
predictIntervals in interface UnivariateIntervalEstimatorconf - the confidence value in the interval [0, 1]
public double logDensity(double value)
logDensity in interface UnivariateDensityEstimatorvalue - the value at which to evaluate
public java.lang.String toString()
toString in class java.lang.Objectpublic static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||