Skip to main content

quantile_sorted

Function quantile_sorted 

Source
pub fn quantile_sorted(sorted: &[f64], p: f64) -> f64
Expand description

Compute a quantile from a sorted slice.

p should be in [0, 1]. Uses linear interpolation between adjacent values.