Template Function beluga::clusterizer_detail::calculate_percentile_threshold
Defined in File cluster_based_estimation.hpp
Function Documentation
-
template<class Range>
auto beluga::clusterizer_detail::calculate_percentile_threshold(Range &&range, double percentile) Calculates the threshold value at a specified percentile from a range.
Find the value that is greater than the given percentage of the numbers in a range.
- Template Parameters:
Range – The type of the input range containing the values.
- Parameters:
range – The input range of values from which to calculate the percentile threshold.
percentile – The percentile (between 0 and 1) to calculate the threshold for.
- Returns:
The value at the specified percentile in the sorted range.