fractionalRanks

fun fractionalRanks(data: DoubleArray, largestToSmallest: Boolean = false): DoubleArray

Returns the rank of each element in the supplied data as a separate array of ranks. If ranks is the returned array, then ranks0 indicates the rank of element 0 in the data array. Ties are handled by assigning the mean of the ranks that would have been given otherwise, so that the sum of the ranks is preserved. This is called fractional ranking

Parameters

largestToSmallest

if true the rankings are largest to smallest. The default is false (smallest to largest).