pub fn percentile(values: &[f64], p: f64) -> Result<f64, QuantizerError>Expand description
Compute the p-th percentile of values using the nearest-rank method.
p must be in [0, 100]. Returns Err(QuantizerError::InvalidPercentile)
otherwise. Returns Err(QuantizerError::EmptyInput) for an empty slice.