fn prctile(x: &mut [f64], p: f64) -> f64Expand description
MATLAB’s prctile(x, p) (R2023b, 'exact', no NaNs): with r = (p/100)·n and k = floor(r + 0.5), (0.5 + r − k)·x(k+1) + (0.5 − r + k)·x(k) of the sorted values, clamped to
the first and last and copied where the two neighbours are equal. x is reordered.