Skip to main content

sti_percentiles

Function sti_percentiles 

Source
fn sti_percentiles(v: &mut [f64], p_lo: f64, p_hi: f64) -> (f64, f64)
Expand description

STI’s percentiles p_lo ≤ p_hi of v (which is reordered), by selection instead of a full sort: the k-th element in total_cmp order is unique, so this is exactly the sorted lookup.