
Weighted quantiles from already-sorted, pre-filtered inputs
Source:R/weighted_statistics.R
weighted_quantiles_presorted.RdInternal core of weighted_quantiles: the midpoint-position
interpolation, assuming inputs are already filtered (finite values, positive
weights) and sorted ascending by value with weights aligned. Exposed so hot
callers that sort once and reuse the order across many subsets (e.g.
optimize_ensemble_subset) can skip the per-call order().