Interface WeightedEvaluation
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description double
evaluate(double[] values, double[] weights)
Returns the result of evaluating the statistic over the input array, using the supplied weights.double
evaluate(double[] values, double[] weights, int begin, int length)
Returns the result of evaluating the statistic over the specified entries in the input array, using corresponding entries in the supplied weights array.
-
-
-
Method Detail
-
evaluate
double evaluate(double[] values, double[] weights)
Returns the result of evaluating the statistic over the input array, using the supplied weights.- Parameters:
values
- input arrayweights
- array of weights- Returns:
- the value of the weighted statistic applied to the input array
-
evaluate
double evaluate(double[] values, double[] weights, int begin, int length)
Returns the result of evaluating the statistic over the specified entries in the input array, using corresponding entries in the supplied weights array.- Parameters:
values
- the input arrayweights
- array of weightsbegin
- the index of the first element to includelength
- the number of elements to include- Returns:
- the value of the weighted statistic applied to the included array entries
-
-