Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.commons.math.stat.descriptive
Interface WeightedEvaluation

All Known Implementing Classes:
  Mean, Product, Variance

    public interface WeightedEvaluation

Weighted evaluation for statistics.

Since:
  2.1
Version:
  $Revision: 894474 $ $Date: 2009-12-29 21:02:37 +0100 (mar. 29 dÃ©c. 2009) $

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

### 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 array
    `weights` - 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 array
    `weights` - array of weights
    `begin` - the index of the first element to include
    `length` - the number of elements to include
  Returns:
    the value of the weighted statistic applied to the included array entries

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2003-2011 The Apache Software Foundation. All Rights Reserved.