public class Rank extends Object
rank
.Modifier and Type | Class and Description |
---|---|
static class |
Rank.TiesMethod
The method for assigning ranks when some values are equal (called
'ties').
|
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.
|
Rank(double[] values,
double threshold,
Rank.TiesMethod tiesMethod)
Compute the sample ranks of the values.
|
Rank(double[] values,
Rank.TiesMethod tiesMethod)
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)
values
- the valuespublic 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, Rank.TiesMethod tiesMethod)
values
- the valuestiesMethod
- the method that determines ranks for tiespublic Rank(double[] values, double threshold, Rank.TiesMethod tiesMethod)
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.tiesMethod
- the method that determines ranks for tiespublic double rank(int i)
i
- the index to a valuepublic double[] ranks()
public double t()
public double s()
Copyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.