Skip to main content

merge_avg

Function merge_avg 

Source
fn merge_avg(words: &mut [f64], other: &AccumulatorState)
Expand description

Adds the sums while they stay finite, and otherwise continues with the count-weighted mean, as the serial update switches to an incremental mean once its sum overflows.

The state words are value, compensation, mean, the incremental flag and the count.