Skip to main content

finished_histogram

Function finished_histogram 

Source
pub(crate) fn finished_histogram(
    op: AggregateOp,
    accumulator: &HistogramAccumulator,
) -> Result<Option<FloatHistogram>>
Expand description

One position’s answer, compacted, or None when the point was poisoned.

A sum answers its live value with the compensation folded in. An average in mean mode answers its mean with the compensation folded in; one that never switched divides the sum and the compensation by the sample count and then folds the compensation in, which is what sum_or_avg does at the end of both paths.