~ubuntu-branches/ubuntu/oneiric/commons-math/oneiric

« back to all changes in this revision

Viewing changes to src/main/java/org/apache/commons/math/stat/ranking/RankingAlgorithm.java

  • Committer: Bazaar Package Importer
  • Author(s): Damien Raude-Morvan
  • Date: 2010-04-05 23:33:02 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20100405233302-gpqlceked76nw28a
Tags: 2.1-1
* New upstream release.
* Bump Standards-Version to 3.8.4: no changes needed
* Bump debhelper to >= 7
* Switch to 3.0 (quilt) source format:
  - Remove B-D on quilt
  - Add d/source/format
  - Remove d/README.source

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 
20
20
/**
21
21
 * Interface representing a rank transformation.
22
 
 * 
 
22
 *
23
23
 * @since 2.0
24
 
 * @version $Revision: 799857 $ $Date: 2009-08-01 09:07:12 -0400 (Sat, 01 Aug 2009) $
 
24
 * @version $Revision: 811685 $ $Date: 2009-09-05 13:36:48 -0400 (Sat, 05 Sep 2009) $
25
25
 */
26
26
public interface RankingAlgorithm {
27
27
    /**
28
28
     * <p>Performs a rank transformation on the input data, returning an array
29
29
     * of ranks.</p>
30
 
     * 
 
30
     *
31
31
     * <p>Ranks should be 1-based - that is, the smallest value
32
32
     * returned in an array of ranks should be greater than or equal to one,
33
33
     * rather than 0. Ranks should in general take integer values, though
34
34
     * implementations may return averages or other floating point values
35
35
     * to resolve ties in the input data.</p>
36
 
     * 
 
36
     *
37
37
     * @param data array of data to be ranked
38
38
     * @return an array of ranks corresponding to the elements of the input array
39
39
     */