yat
0.14.5pre
|
class to calculate mean More...
#include <yat/statistics/Averager1.h>
Public Member Functions | |
Averager1 (void) | |
construct empty object | |
template<class Derived > | |
const Averager1 & | operator+= (const averager_base< Derived > &rhs) |
plus and assign operator | |
void | add (double x, long n=1) |
add a data point More... | |
double | mean (void) const |
mean More... | |
long | n (void) const |
number of data points More... | |
void | rescale (double a) |
Rescales the object. More... | |
void | reset (void) |
Reset object. More... | |
double | sum_x (void) const |
Protected Member Functions | |
void | add1 (double x, long int n) |
void | add1 (double delta) |
double | rescale1 (double x) |
Protected Attributes | |
long int | n_ |
double | mean_ |
mean | |
Friends | |
class | averager_base< Averager1 > |
class to calculate mean
|
inlineinherited |
add a data point
Adding n number of data point(s) with value x.
|
protectedinherited |
add n data points with value x
|
protectedinherited |
add one data point with value delta + mean()
|
inlineinherited |
mean
|
inlineinherited |
number of data points
|
inlineinherited |
Rescales the object.
,
|
protectedinherited |
rescale as
|
inlineinherited |
Reset object.
Restore Averager as if data were never added
|
inlineinherited |
|
protectedinherited |
number of data points