1 #ifndef _theplu_yat_statistics_averager1
2 #define _theplu_yat_statistics_averager1
25 #include "averager_base.h"
29 namespace statistics {
47 template<
class Derived>
52 void add_impl(
double,
long int n);
53 void rescale_impl(
double);
61 template<
class Derived>
Base class for averager classes.
Definition: averager_base.h:69
const Averager1 & operator+=(const averager_base< Derived > &rhs)
plus and assign operator
Definition: Averager1.h:62
Averager1(void)
construct empty object
class to calculate mean
Definition: Averager1.h:36
long n(void) const
number of data points
Definition: averager_base.h:105
void add1(double x, long int n)
double mean(void) const
mean
Definition: averager_base.h:97