Class to calculate simple (first and second moments) averages.
More...
#include <yat/statistics/Averager.h>
|
class | averager_base< Averager > |
|
|
(Note that these are not member functions.)
|
template<typename InputIterator > |
void | add (Averager &a, InputIterator first, InputIterator last) |
| adding a range of values to Averager a More...
|
|
Class to calculate simple (first and second moments) averages.
- See also
- AveragerWeighted AveragerPair AveragerPairWeighted
◆ Averager() [1/3]
theplu::yat::statistics::Averager::Averager |
( |
void |
| ) |
|
◆ Averager() [2/3]
theplu::yat::statistics::Averager::Averager |
( |
double |
x, |
|
|
double |
xx, |
|
|
long |
n |
|
) |
| |
Constructor taking sum of x, sum of squared x, xx, and number of samples n.
◆ Averager() [3/3]
theplu::yat::statistics::Averager::Averager |
( |
const Averager & |
a | ) |
|
◆ add()
add a data point
Adding n number of data point(s) with value x.
◆ add1() [1/2]
add n data points with value x
◆ add1() [2/2]
add one data point with value delta + mean()
◆ add2() [1/2]
add a set of n data points with mean mean and centralized squaed sum cm
◆ add2() [2/2]
add one data point with value delta + mean()
◆ cv()
Coeffient of variation.
Coeffient of variation (cv) is defined as ratio between the standard deviation and the mean: .
- Returns
- standard deviation divided by mean.
◆ mean()
mean
- Returns
- Mean of presented data,
◆ n()
number of data points
- Returns
- Number of data points
◆ operator+=()
plus assignment operator
Add another Averager
◆ rescale()
Rescales the object.
,
◆ rescale1()
rescale as
◆ rescale2()
◆ reset()
Reset object.
Restore Averager as if data were never added
◆ standard_error()
- Returns
- Standard error, i.e. standard deviation of the mean
◆ std() [1/2]
The standard deviation is defined as the square root of the variance.
- Returns
- The standard deviation, root of the variance().
◆ std() [2/2]
The standard deviation is defined as the square root of the variance.
- Returns
- Standard deviation around m, root of the variance(m).
◆ sum_x()
- Returns
- The sum of data values
◆ sum_xx()
- Returns
- The sum of squares
◆ sum_xx_centered()
- Returns
-
◆ variance() [1/2]
The variance with known mean.
The variance is calculated as .
- Returns
- Variance when the mean is known to be m.
◆ variance() [2/2]
The estimated variance.
The variance is calculated as , where is the mean.
- Returns
- Estimation of variance
◆ variance_unbiased()
◆ add()
template<typename InputIterator >
void add |
( |
Averager & |
a, |
|
|
InputIterator |
first, |
|
|
InputIterator |
last |
|
) |
| |
|
related |
adding a range of values to Averager a
Type Requirements:
◆ cm2_
sum of values squared values centralized
◆ n_
The documentation for this class was generated from the following file: