|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Extends the capabilities of UnivariateStatistic with a statefull incremental strategy through three methods for calculating a statistic without having to maintain a double[] of the values. Because a StorelessUnivariateStatistic does not require that a double[] storage structure be maintained with the values in it, there are only a subset of known statistics can actually be implemented using it. If a Statistic cannot be implemented in a Storeless approach it should implement the UnivariateStatistic interface directly instead.
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 interface org.apache.commons.math.stat.univariate.UnivariateStatistic |
evaluate, evaluate |
Method Detail |
public void increment(double d)
d
- is the value to increment the state by.public double getResult()
public double getN()
public void clear()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |