21
21
* Interface representing a rank transformation.
26
26
public interface RankingAlgorithm {
28
28
* <p>Performs a rank transformation on the input data, returning an array
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>
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