StorelessUnivariateStatistic interface.
Provides default evaluate() and incrementAll(double[])
implementations.
Note that these implementations are not synchronized.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public abstract void | clear()
Redeclares org. Clears the internal state of the Statistic |
| public abstract StorelessUnivariateStatistic | copy()
Redeclares org. Implements abstract org. Returns a copy of the statistic with the same internal state. |
| public boolean | Returns: true if object returns the same value as thisobject to test equality against. object)Overrides java. Returns true iff |
| public double | Returns: the value of the statistic applied to the input arrayinput array values)Overrides org. Implements org. This default implementation calls |
| public double | Returns: the value of the statistic applied to the included array entriesthe input array values, final int the index of the first element to include begin, final int the number of elements to include length)Implements abstract org. Implements org. This default implementation calls |
| public abstract double | getResult()
Redeclares org. Returns the current value of the Statistic. |
| public int | Returns: hash codeOverrides java. Returns hash code based on getResult() and getN() |
| public abstract void | increment(final double
the new value. d)Redeclares org. Updates the internal state of the statistic to reflect the addition of the new value. |
| public void | incrementAll(double[]
values to add values)Implements org. This default implementation just calls |
| public void | incrementAll(double[]
array holding values to add values, int index of the first array element to add begin, int number of array elements to add length)Implements org. This default implementation just calls |
| AbstractStorelessUnivariateStatistic | back to summary |
|---|---|
| public AbstractStorelessUnivariateStatistic() | |
| clear | back to summary |
|---|---|
| public abstract void clear() Redeclares org. Doc from org. Clears the internal state of the Statistic | |
| copy | back to summary |
|---|---|
| public abstract StorelessUnivariateStatistic copy() Redeclares org. Implements abstract org. Doc from org. Returns a copy of the statistic with the same internal state.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object object) Overrides java. Returns true iff | |
| evaluate | back to summary |
|---|---|
| public double evaluate(final double[] values) throws MathIllegalArgumentException Overrides org. Implements org. This default implementation calls
Note that this implementation changes the internal state of the
statistic. Its side effects are the same as invoking Implementations may override this method with a more efficient and possibly more accurate implementation that works directly with the input array. If the array is null, a MathIllegalArgumentException is thrown.
| |
| evaluate | back to summary |
|---|---|
| public double evaluate(final double[] values, final int begin, final int length) throws MathIllegalArgumentException Implements abstract org. Implements org. This default implementation calls
Note that this implementation changes the internal state of the
statistic. Its side effects are the same as invoking Implementations may override this method with a more efficient and possibly more accurate implementation that works directly with the input array. If the array is null or the index parameters are not valid, an MathIllegalArgumentException is thrown.
| |
| getResult | back to summary |
|---|---|
| public abstract double getResult() Redeclares org. Doc from org. Returns the current value of the Statistic.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Returns hash code based on getResult() and getN()
| |
| increment | back to summary |
|---|---|
| public abstract void increment(final double d) Redeclares org. Doc from org. Updates the internal state of the statistic to reflect the addition of the new value.
| |
| incrementAll | back to summary |
|---|---|
| public void incrementAll(double[] values) throws MathIllegalArgumentException Implements org. This default implementation just calls Throws IllegalArgumentException if the input values array is null.
| |
| incrementAll | back to summary |
|---|---|
| public void incrementAll(double[] values, int begin, int length) throws MathIllegalArgumentException Implements org. This default implementation just calls Throws IllegalArgumentException if the input values array is null.
| |