Expand description
Operations on crate::Cluster
s.
This attempts to implement all functionality of this module but using clusters. This turned out to be quite difficult.
Modules§
Functions§
- median
- Convenience function for
percentile
with the 50% mark as the target andpivot_fn::rand
(if thepercentile-rand
feature is enabled, elsepivot_fn::middle
). - naive_
percentile - Percentile by sorting.
- naive_
percentile_ by - Same as
naive_percentile
but with a custom comparator function. - percentile
- quickselect algorithm
- percentile_
by - Same as
percentile
but with a custom comparator function. - percentile_
default_ pivot - Get the value at
target
invalues
. Uses the best method available (percentile_rand
if featurepercentile-rand
is enabled, elsepivot_fn::middle
) - percentile_
default_ pivot_ by - Same as
percentile_default_pivot
but with a custom comparator function. - percentile_
rand percentile-rand
- Convenience function for
percentile
withpivot_fn::rand
.