public class UnivariateNormalEstimator extends java.lang.Object implements UnivariateDensityEstimator, UnivariateIntervalEstimator, UnivariateQuantileEstimator, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static double |
CONST
Constant for Gaussian density
|
Constructor and Description |
---|
UnivariateNormalEstimator() |
Modifier and Type | Method and Description |
---|---|
void |
addValue(double value,
double weight)
Adds a value to the density estimator.
|
java.lang.String |
getRevision()
Returns the revision string.
|
java.lang.String |
globalInfo()
Returns a string describing the 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.
|
double |
predictQuantile(double percentage)
Returns the quantile for the given percentage.
|
java.lang.String |
toString()
Returns textual description of this estimator.
|
public java.lang.String globalInfo()
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 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 percentagepublic double logDensity(double value)
logDensity
in interface UnivariateDensityEstimator
value
- the value at which to evaluatepublic java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getRevision()
getRevision
in interface RevisionHandler
public static void main(java.lang.String[] args)