yat
0.20.3pre
|
#include <yat/statistics/averager_base.h>
Public Member Functions | |
averager_base4 (void) | |
Constructor. | |
virtual | ~averager_base4 (void)=0 |
Destructor. | |
double | central_moment4 (void) const |
Fourth central moment. More... | |
double | kurtosis (void) const |
Kurtosis. More... | |
double | sum_x4_centered (void) const |
sum quadrupled centered More... | |
double | central_moment3 (void) const |
Third central moment. More... | |
double | skewness (void) const |
Skewness. More... | |
double | sum_x3_centered (void) const |
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 | add4 (double mean, double cm2, double cm3, double cm4, long int n) |
void | add4 (double delta) |
double | rescale4 (double x) |
void | add3 (double mean, double cm2, double cm3, long int n) |
void | add3 (double delta) |
double | rescale3 (double x) |
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 | cm4_ |
sum quadrupled centered | |
double | cm3_ |
double | cm2_ |
long int | n_ |
double | mean_ |
mean | |
Base class for averagers calculating first (mean), second (variance), third moment, and fourth moment.
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()
|
protectedinherited |
add a set of n data points with mean mean and centralized squaed sum cm
|
protectedinherited |
add one data point with value delta + mean()
|
protectedinherited |
add a set of n data points with mean mean
, sum squared centered cm2, and sum cubed centered cm3.
|
protectedinherited |
add one data point with value delta
+ mean()
|
protected |
add a set of n data points with mean mean
, sum squared centered cm2, sum cubed centered cm3, and sum quadrupled centered cm4.
|
protected |
add one data point with value delta
+ mean()
|
inlineinherited |
Third central moment.
Third central moment is calculated as where m
is the mean.
|
inline |
Fourth central moment.
Fourth central moment is calculated as where m
is the mean.
|
inlineinherited |
Coeffient of variation.
Coeffient of variation (cv) is defined as ratio between the standard deviation and the mean: .
|
inline |
Kurtosis.
Kurtosis is calculated as where m
is mean, and is standard deviation.
n
.
|
inlineinherited |
mean
|
inlineinherited |
number of data points
|
inlineinherited |
Rescales the object.
,
|
protectedinherited |
rescale as
|
protectedinherited |
rescales and calles rescale1(double)
|
protectedinherited |
rescales and calles rescale2(double)
|
protected |
rescales and calles rescale2(double)
|
inlineinherited |
Reset object.
Restore Averager as if data were never added
|
inlineinherited |
Skewness.
Skewness is calculated as where is standard deviation.
n
.
|
inlineinherited |
|
inlineinherited |
The standard deviation is defined as the square root of the variance.
|
inlineinherited |
The standard deviation is defined as the square root of the variance.
|
inlineinherited |
|
inlineinherited |
|
inline |
sum quadrupled centered
Calculated as
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
The variance with known mean.
The variance is calculated as .
|
inlineinherited |
The estimated variance.
The variance is calculated as , where is the mean.
|
inlineinherited |
The variance is calculated using the correction, which means it is the best unbiased estimator of the variance , where is the mean.
|
protectedinherited |
sum of values squared values centralized
|
protectedinherited |
sum cubed centered
|
protectedinherited |
number of data points