pub fn percentile<T: Clone + Ord>(
values: &mut [T],
target: impl OrderedListIndex,
pivot_fn: &mut impl FnMut(&mut [T]) -> Cow<'_, T>,
) -> MeanValue<T>Expand description
quickselect algorithm
Consider using percentile_rand or median.
See percentile_by for support for a custom comparator function.
pivot_fn must return a value from the supplied slice.