|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.math.stat.univariate.AbstractUnivariateStatistic
org.apache.commons.math.stat.univariate.AbstractStorelessUnivariateStatistic
org.apache.commons.math.stat.univariate.moment.FirstMoment
FirstMoment.java The FirstMoment (arithmentic mean) is calculated using the following recursive strategy . Both incremental and evaluation strategies currently use this approach.
Field Summary | |
protected double |
dev
temporary internal state made available for higher order moments |
protected double |
m1
first moment of values that have been added |
protected int |
n
count of values that have been added |
protected double |
n0
temporary internal state made available for higher order moments |
protected double |
v
temporary internal state made available for higher order moments |
Constructor Summary | |
FirstMoment()
|
Method Summary | |
void |
clear()
Clears all the internal state of the Statistic |
double |
getN()
Returns the current state of the statistic after the last increment. |
double |
getResult()
Returns the current state of the statistic after the last increment. |
void |
increment(double d)
Increments the internal state of the Storagless Implementation. |
Methods inherited from class org.apache.commons.math.stat.univariate.AbstractStorelessUnivariateStatistic |
evaluate |
Methods inherited from class org.apache.commons.math.stat.univariate.AbstractUnivariateStatistic |
evaluate, test |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.commons.math.stat.univariate.UnivariateStatistic |
evaluate |
Field Detail |
protected int n
protected double m1
protected double dev
protected double v
protected double n0
Constructor Detail |
public FirstMoment()
Method Detail |
public void increment(double d)
StorelessUnivariateStatistic
increment
in interface StorelessUnivariateStatistic
increment
in class AbstractStorelessUnivariateStatistic
StorelessUnivariateStatistic.increment(double)
public void clear()
StorelessUnivariateStatistic
clear
in interface StorelessUnivariateStatistic
clear
in class AbstractStorelessUnivariateStatistic
StorelessUnivariateStatistic.clear()
public double getResult()
StorelessUnivariateStatistic
getResult
in interface StorelessUnivariateStatistic
getResult
in class AbstractStorelessUnivariateStatistic
StorelessUnivariateStatistic.getResult()
public double getN()
StorelessUnivariateStatistic
getN
in interface StorelessUnivariateStatistic
StorelessUnivariateStatistic.getN()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |