|
|||||||||||
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
org.apache.commons.math.stat.univariate.moment.SecondMoment
org.apache.commons.math.stat.univariate.moment.ThirdMoment
The ThirdMoment (arithmentic mean) is calculated using the following recursive strategy . Both incremental and evaluation strategies currently use this approach.
Field Summary | |
protected double |
m3
third moment of values that have been added |
protected double |
n2
temporary internal state made availabel for higher order moments |
protected double |
prevM2
temporary internal state made availabel for higher order moments |
protected double |
v2
temporary internal state made availabel for higher order moments |
Fields inherited from class org.apache.commons.math.stat.univariate.moment.SecondMoment |
m2, n1 |
Fields inherited from class org.apache.commons.math.stat.univariate.moment.FirstMoment |
dev, m1, n, n0, v |
Constructor Summary | |
ThirdMoment()
|
Method Summary | |
void |
clear()
Clears all the internal state of the Statistic |
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.moment.FirstMoment |
getN |
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 double m3
protected double v2
protected double n2
protected double prevM2
Constructor Detail |
public ThirdMoment()
Method Detail |
public void increment(double d)
StorelessUnivariateStatistic
increment
in interface StorelessUnivariateStatistic
increment
in class SecondMoment
StorelessUnivariateStatistic.increment(double)
public double getResult()
StorelessUnivariateStatistic
getResult
in interface StorelessUnivariateStatistic
getResult
in class SecondMoment
StorelessUnivariateStatistic.getResult()
public void clear()
StorelessUnivariateStatistic
clear
in interface StorelessUnivariateStatistic
clear
in class SecondMoment
StorelessUnivariateStatistic.clear()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |