pub fn percentile(
values: &mut OwnedClusterList,
target: impl OrderedListIndex,
pivot_fn: &mut impl FnMut(&ClusterList<'_>) -> f64,
) -> MeanValue<f64>
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.