Class to keep running mean and variance of an input series. More...
#include <cmath>
Go to the source code of this file.
Classes | |
class | RunningStats |
Class to keep running mean and variance of an input series.
This implementation works incrementally. When given a new sample, it updates internal state, without storing the entire history.
TODO: replace this version with Knuth's more numerically stable algorithm. See: "On-line_algorithm" section of Wikipedia article "Algorithms_for_calculating_variance".
Definition in file running_stats.hh.