pub fn quantile(x: &[f64], p: f64) -> Result<f64, ErrorsJSL>
The p-quantile (0 ≤ p ≤ 1) by linear interpolation between order statistics at h = (n − 1)p (Hyndman and Fan type 7, the default of R and NumPy).
p
0 ≤ p ≤ 1
h = (n − 1)p