Take the average of the ranks for all ties
Take the average of the ranks for all ties
Vec(3,6,6,4).rank(tie = stats.RankTie.Avg) == Vec[Double](1,3.5,3.5,2)
Take the maximum rank for all ties
Take the maximum rank for all ties
Vec(3,6,6,4).rank(tie = stats.RankTie.Max) == Vec[Double](1,4,4,2)
Take the minimum rank for all ties
Take the minimum rank for all ties
Vec(3,6,6,4).rank(tie = stats.RankTie.Min) == Vec[Double](1,3,3,2)
Take the rank according to natural (input) order
Take the rank according to natural (input) order
Vec(3,6,6,4).rank(tie = stats.RankTie.Nat) == Vec[Double](1,3,4,2)