pub fn percentile_by<T: Clone>(
values: &mut [T],
target: impl OrderedListIndex,
pivot_fn: &mut impl FnMut(&mut [T]) -> Cow<'_, T>,
compare: &mut impl FnMut(&T, &T) -> Ordering,
) -> MeanValue<T>
Expand description
Same as percentile
but with a custom comparator function.