fn avg(values: &[f64]) -> f64
Prometheus funcAvgOverTime: the Kahan sum divided by the count, switching to an incremental mean once the sum would overflow.
funcAvgOverTime