public interface StorelessSymbolicUnivariateStatistic extends SymbolicUnivariateStatistic
SymbolicUnivariateStatistic
with
increment(org.matheclipse.core.interfaces.IExpr)
and #incrementAll(double[])
methods for adding
values and updating internal state.
This interface is designed to be used for calculating statistics that can be computed in one pass through the data without storing the full array of sample values.
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears the internal state of the Statistic
|
long |
getN()
Returns the number of values that have been added.
|
IExpr |
getResult()
Returns the current value of the Statistic.
|
void |
increment(IExpr d)
Updates the internal state of the statistic to reflect the addition of the
new value.
|
void |
incrementAll(IAST values)
Updates the internal state of the statistic to reflect addition of all
values in the values array.
|
void |
incrementAll(IAST 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.
|
evaluate, evaluate
void increment(IExpr d)
d
- the new value.void incrementAll(IAST values)
values
- array holding the new values to addjava.lang.IllegalArgumentException
- if the array is nullvoid incrementAll(IAST values, int start, int length)
values
- array holding the new values to addstart
- the array index of the first value to addlength
- the number of elements to addjava.lang.IllegalArgumentException
- if the array is null or the indexIExpr getResult()
Double.NaN
if it has been
cleared or just instantiated.long getN()
void clear()