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.ranking
Interface RankingAlgorithm

All Known Implementing Classes:
  NaturalRanking

    public interface RankingAlgorithm

Interface representing a rank transformation.

Since:
  2.0
Version:
  $Revision: 811685 $ $Date: 2009-09-05 19:36:48 +0200 (sam. 05 sept. 2009) $

Method Summary
`double[]` | `rank(double[] data)` Performs a rank transformation on the input data, returning an array of ranks.

Method Detail

### rank

    double[] rank(double[] data)

  Performs a rank transformation on the input data, returning an array of ranks.

  Ranks should be 1-based - that is, the smallest value returned in an array of ranks should be greater than or equal to one, rather than 0. Ranks should in general take integer values, though implementations may return averages or other floating point values to resolve ties in the input data.

  Parameters:
    `data` - array of data to be ranked
  Returns:
    an array of ranks corresponding to the elements of the input array

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.