yat
0.14.5pre
|
Base class for averagers calculating mean and variance. More...
#include <yat/statistics/averager_base.h>
Public Member Functions | |
averager_base2 (void) | |
Constructor. | |
virtual | ~averager_base2 (void)=0 |
Destructor. | |
double | cv (void) const |
Coeffient of variation. More... | |
double | standard_error (void) const |
double | std (void) const |
The standard deviation is defined as the square root of the variance. More... | |
double | std (double m) const |
The standard deviation is defined as the square root of the variance. More... | |
double | sum_xx (void) const |
double | sum_xx_centered (void) const |
double | variance (double m) const |
The variance with known mean. More... | |
double | variance (void) const |
The estimated variance. More... | |
double | variance_unbiased (void) const |
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 | add2 (double mean, double cm2, long int n) |
void | add2 (double delta) |
double | rescale2 (double x) |
void | add1 (double x, long int n) |
void | add1 (double delta) |
double | rescale1 (double x) |
Protected Attributes | |
double | cm2_ |
long int | n_ |
double | mean_ |
mean | |
Base class for averagers calculating mean and variance.
This is an extension of averager_base and provides more functionality related to the second moment (variance).
For requirement on Derived
see averager_base.
|
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()
|
protected |
add a set of n data points with mean mean and centralized squaed sum cm
|
protected |
add one data point with value delta + mean()
|
inline |
Coeffient of variation.
Coeffient of variation (cv) is defined as ratio between the standard deviation and the mean: .
|
inlineinherited |
mean
|
inlineinherited |
number of data points
|
inlineinherited |
Rescales the object.
,
|
protectedinherited |
rescale as
|
protected |
rescales and calles rescale1(double)
|
inlineinherited |
Reset object.
Restore Averager as if data were never added
|
inline |
|
inline |
The standard deviation is defined as the square root of the variance.
|
inline |
The standard deviation is defined as the square root of the variance.
|
inlineinherited |
|
inline |
|
inline |
|
inline |
The variance with known mean.
The variance is calculated as .
|
inline |
The estimated variance.
The variance is calculated as , where is the mean.
|
inline |
The variance is calculated using the correction, which means it is the best unbiased estimator of the variance , where is the mean.
|
protected |
sum of values squared values centralized
|
protectedinherited |
number of data points