~ubuntu-branches/ubuntu/quantal/commons-math/quantal

« back to all changes in this revision

Viewing changes to src/main/java/org/apache/commons/math/stat/ranking/TiesStrategy.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:
26
26
 * of the first occurrence. For example, (1,3,4,3) is ranked as (1,2,4,2)</li>
27
27
 * <li>MAXIMUM - Tied values are assigned the maximum applicable rank, or the rank
28
28
 * of the last occurrence. For example, (1,3,4,3) is ranked as (1,3,4,3)</li>
29
 
 * <li>AVERAGE - Tied values are assigned the average of the applicable ranks.  
 
29
 * <li>AVERAGE - Tied values are assigned the average of the applicable ranks.
30
30
 * For example, (1,3,4,3) is ranked as (1,2.5,4,2.5)</li>
31
31
 * <li>AVERAGE - Tied values are assigned a random integer rank from among the
32
32
 * applicable values. The assigned rank will always be an integer, (inclusively)
34
34
 * </ul>
35
35
 *
36
36
 * @since 2.0
37
 
 * @version $Revision: 799857 $ $Date: 2009-08-01 09:07:12 -0400 (Sat, 01 Aug 2009) $
 
37
 * @version $Revision: 811685 $ $Date: 2009-09-05 13:36:48 -0400 (Sat, 05 Sep 2009) $
38
38
 */
39
39
public enum TiesStrategy {
40
 
    
 
40
 
41
41
    /** Ties assigned sequential ranks in order of occurrence */
42
42
    SEQUENTIAL,
43
 
    
 
43
 
44
44
    /** Ties get the minimum applicable rank */
45
45
    MINIMUM,
46
 
    
 
46
 
47
47
    /** Ties get the maximum applicable rank */
48
48
    MAXIMUM,
49
 
    
 
49
 
50
50
    /** Ties get the average of applicable ranks */
51
51
    AVERAGE,
52
 
    
 
52
 
53
53
    /** Ties get a random integral value from among applicable ranks */
54
54
    RANDOM
55
55
}