percentile_sorted

Function percentile_sorted 

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

Compute percentile on a sorted slice using linear interpolation.

p should be in [0.0, 1.0]. The slice must be sorted in ascending order. Returns None if the slice is empty.