yat
0.14.5pre
|
class to calculate 1st, 2nd, and 3rd central moments More...
#include <yat/statistics/Averager3.h>
Public Member Functions | |
Averager3 (void) | |
construct empty object | |
template<class Derived > | |
const Averager3 & | operator+= (const averager_base3< Derived > &rhs) |
plus and assign operator | |
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 | 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 | cm3_ |
double | cm2_ |
long int | n_ |
double | mean_ |
mean | |
Friends | |
class | averager_base< Averager3 > |
class to calculate 1st, 2nd, and 3rd central moments
|
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()
|
inlineinherited |
Third central moment.
Third 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: .
|
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)
|
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 |
|
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