Skip to main content

percentile

Function percentile 

Source
fn percentile(sorted: &[Duration], percent: usize) -> Duration
Expand description

Selects the nearest-rank percentile of an ascending population.

The rank is the ceiling of percent times the population size; an empty population yields zero.