Package org.hipparchus.util
Interface MathArrays.Function
-
- All Known Subinterfaces:
StorelessUnivariateStatistic,UnivariateStatistic
- All Known Implementing Classes:
AbstractStorelessUnivariateStatistic,AbstractUnivariateStatistic,GeometricMean,Kurtosis,Max,Mean,Median,Min,Percentile,Product,PSquarePercentile,RandomPercentile,SecondMoment,SemiVariance,Skewness,StandardDeviation,Sum,SumOfLogs,SumOfSquares,Variance
- Enclosing class:
- MathArrays
public static interface MathArrays.FunctionReal-valued function that operates on an array or a part of it.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description doubleevaluate(double[] array)Operates on an entire array.doubleevaluate(double[] array, int startIndex, int numElements)
-
-
-
Method Detail
-
evaluate
double evaluate(double[] array)
Operates on an entire array.- Parameters:
array- Array to operate on.- Returns:
- the result of the operation.
-
evaluate
double evaluate(double[] array, int startIndex, int numElements)- Parameters:
array- Array to operate on.startIndex- Index of the first element to take into account.numElements- Number of elements to take into account.- Returns:
- the result of the operation.
-
-