ranks
fun ranks(data: DoubleArray, method: Statistic.Companion.Ranking = Ranking.Ordinal, largestToSmallest: Boolean = false): DoubleArray
Computes the ranks for the data array based on the supplied ranking method.
Return
the ranks returned in an array, where element k of the array holds the rank of element k in the data array
Parameters
data
the data to rank
method
the method to use for ranking (Ordinal, Fractional, Dense) with Ordinal as the default
largest To Smallest
if true the rankings are largest to smallest. The default is false (smallest to largest).