public class Rank
extends java.lang.Object
implements java.io.Serializable
rank.| Constructor and Description |
|---|
Rank(double[] values)
Compute the sample ranks of the values.
|
Rank(double[] values,
double threshold)
Compute the sample ranks of the values.
|
| Modifier and Type | Method and Description |
|---|---|
double |
rank(int i)
Get the rank of the i-th element.
|
double[] |
ranks()
Get the ranks of the values.
|
double |
s()
\[
s = \sum(t_i^2 - t_i)
\]
|
double |
t()
/[
t = \sum(t_i^3 - t_i)
\]
|
public Rank(double[] values,
double threshold)
values - the valuesthreshold - the tie threshold.
If successive elements of the sorted array differ by less than the threshold, they are treated as equal.
We count the number of ties in each group.public Rank(double[] values)
values - the valuespublic double rank(int i)
i - the index to a valuepublic double[] ranks()
public double t()
public double s()