|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WeightedEvaluation
Weighted evaluation for statistics.
Method Summary | |
---|---|
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 |
---|
double evaluate(double[] values, double[] weights) throws MathIllegalArgumentException
values
- input arrayweights
- array of weights
MathIllegalArgumentException
- if either array is null, lengths
do not match, weights contain NaN, negative or infinite values, or
weights does not include at least on positive valuedouble evaluate(double[] values, double[] weights, int begin, int length) throws MathIllegalArgumentException
values
- the input arrayweights
- array of weightsbegin
- the index of the first element to includelength
- the number of elements to include
MathIllegalArgumentException
- if either array is null, lengths
do not match, indices are invalid, weights contain NaN, negative or
infinite values, or weights does not include at least on positive value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |