# Functions
No description provided by the author
NewMovingAverage constructs a MovingAverage that computes an average with the desired characteristics in the moving window or exponential decay.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Constants
By default, we average over a one-minute period, which means the average age of the metrics in the period is 30 seconds.
The formula for computing the decay factor from the average age comes from "Production and Operations Analysis" by Steven Nahmias.
For best results, the moving average should not be initialized to the samples it sees immediately.
# Structs
bayesian average (贝叶斯平均) https://www.ruanyifeng.com/blog/2012/03/ranking_algorithm_bayesian_average.html.
No description provided by the author
reddit https://www.ruanyifeng.com/blog/2012/03/ranking_algorithm_reddit.html.
A SimpleEWMA represents the exponentially weighted moving average of a series of numbers.
No description provided by the author
VariableEWMA represents the exponentially weighted moving average of a series of numbers.
wilson score interval(威尔逊区间) https://www.ruanyifeng.com/blog/2012/03/ranking_algorithm_wilson_score_interval.html.
# Interfaces
MovingAverage is the interface that computes a moving average over a time- series stream of numbers.