denseRanks

fun denseRanks(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. In dense ranking, items that compare equally receive the same ranking number, and the next items receive the immediately following ranking number. This is called dense ranking

Parameters

largestToSmallest

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