Skip to main content

percentiles

Function percentiles 

Source
pub fn percentiles(values: &[u64]) -> Percentiles
Expand description

Nearest-rank percentiles of values (the copy is sorted; the input may be unsorted). The rank for percentile p is ceil(p/100 * n) clamped to [1, n], taken at index rank - 1. An empty sample yields all-zeros.