| org.apache.commons.math.stat.descriptive.StorelessUnivariateStatistic
All known Subclasses: org.apache.commons.math.stat.descriptive.AbstractStorelessUnivariateStatistic,
Method Summary | |
void | clear() | long | getN() Returns the number of values that have been added. | double | getResult() Returns the current value of the Statistic. | void | increment(double d) Updates the internal state of the statistic to reflect the addition of the new value. | void | incrementAll(double[] values) Updates the internal state of the statistic to reflect addition of
all values in the values array. | void | incrementAll(double[] values, int start, int length) Updates the internal state of the statistic to reflect addition of
the values in the designated portion of the values array. |
clear | void clear()(Code) | | Clears the internal state of the Statistic
|
getN | long getN()(Code) | | Returns the number of values that have been added.
the number of values. |
getResult | double getResult()(Code) | | Returns the current value of the Statistic.
value of the statistic, Double.NaN if ithas been cleared or just instantiated. |
increment | void increment(double d)(Code) | | Updates the internal state of the statistic to reflect the addition of the new value.
Parameters: d - the new value. |
incrementAll | void incrementAll(double[] values)(Code) | | Updates the internal state of the statistic to reflect addition of
all values in the values array. Does not clear the statistic first --
i.e., the values are added incrementally to the dataset.
Parameters: values - array holding the new values to add throws: IllegalArgumentException - if the array is null |
incrementAll | void incrementAll(double[] values, int start, int length)(Code) | | Updates the internal state of the statistic to reflect addition of
the values in the designated portion of the values array. Does not
clear the statistic first -- i.e., the values are added
incrementally to the dataset.
Parameters: values - array holding the new values to add Parameters: start - the array index of the first value to add Parameters: length - the number of elements to add throws: IllegalArgumentException - if the array is null or the index |
|
|