Mirrors the C# Statistics.RanksInPlace(double[]): tied values (exact equality) receive the
average rank of their run.
Examples
ranks(c(3, 1, 2, 1))
#> [1] 4.0 1.5 3.0 1.5
Mirrors the C# Statistics.RanksInPlace(double[]): tied values (exact equality) receive the
average rank of their run.
ranks(c(3, 1, 2, 1))
#> [1] 4.0 1.5 3.0 1.5