Skip to main content

Module ew_mean

Module ew_mean 

Source
Expand description

Exponentially weighted mean.

Time complexity per update: O(1). Space complexity: O(1).

The update rule is mean = alpha * x + (1 - alpha) * mean. The first observation seeds the mean directly.

Structsยง

ExponentiallyWeightedMean
Exponentially weighted moving average.