public interface UnivariateStatistic extends MathArrays.Function
Modifier and Type | Method and Description |
---|---|
UnivariateStatistic |
copy()
Returns a copy of the statistic with the same internal state.
|
default double |
evaluate(double[] values)
Returns the result of evaluating the statistic over the input array.
|
double |
evaluate(double[] values,
int begin,
int length)
Returns the result of evaluating the statistic over the specified entries
in the input array.
|
default double evaluate(double[] values) throws MathIllegalArgumentException
The default implementation delegates to
evaluate(double[], int, int)
in the natural way.
evaluate
in interface MathArrays.Function
values
- input arrayMathIllegalArgumentException
- if values is nulldouble evaluate(double[] values, int begin, int length) throws MathIllegalArgumentException
evaluate
in interface MathArrays.Function
values
- the input arraybegin
- the index of the first element to includelength
- the number of elements to includeMathIllegalArgumentException
- if values is null or the indices are invalidUnivariateStatistic copy()
Copyright © 2016 Hipparchus.org. All rights reserved.