pub fn percentile_linear(sorted: &[f64], p: f64) -> f64
NumPy’s default (“linear”) percentile interpolation on an already-sorted slice.