[][src]Function frank::rank_count_lesser

pub fn rank_count_lesser<T: PartialOrd + Clone>(vector: &[T]) -> Vec<usize>

vector.rank_count_lesser() borrows a generic vector and returns a usize vector list of the count of lesser items in the generic vector. Small values score small ranks, large values score large ranks. The smallest value in a list scores a zero rank, based on a ranking system described by Wassily Hoeffding in 1947. Note: a tie for second place means there can be no third place rank but still allows a fourth place award. Useful for nonparametric statistics, say for comparison of 5k race times... which reminds me of a joke. So twin photons, a zippy electron and a massive proton all have a race. The proton is positive he'll finish last, and of course the photon twins win because they travel light. The ranks of such a race would likely be: 0,0,2,3 or 0,0,2,2.