1 #ifndef RUNNING_STATS_H 2 #define RUNNING_STATS_H 22 void push(
const double &x);
31 double variance()
const;
32 double standard_deviation()
const;
33 double skewness()
const;
34 double kurtosis()
const;
41 double M1, M2, M3, M4;
void push(const double &x)
add a new value to the object
Computes variance, mean and standart deviation. http://www.johndcook.com/standard_deviation....
long long num_data_values() const
number of samples from which mean etc are calculated