Class for taking care of mean and covariance of two variables.
More...
#include <yat/statistics/AveragerPair.h>
|
(Note that these are not member functions.)
|
template<class InputIterator1 , class InputIterator2 > |
void | add (AveragerPair &ap, InputIterator1 first1, InputIterator1 last1, InputIterator2 first2) |
| adding data from two ranges to AveragerPair ap More...
|
|
Class for taking care of mean and covariance of two variables.
- See Also
- Averager AveragerWeighted AveragerPairWeighted
theplu::yat::statistics::AveragerPair::AveragerPair |
( |
const AveragerPair & |
| ) |
|
void theplu::yat::statistics::AveragerPair::add |
( |
const double |
x, |
|
|
const double |
y, |
|
|
const long |
n = 1 |
|
) |
| |
Adding n pairs of data points with value x and y.
double theplu::yat::statistics::AveragerPair::ccc |
( |
void |
| ) |
const |
Concordence correlation coefficient.
double theplu::yat::statistics::AveragerPair::correlation |
( |
void |
| ) |
const |
- Returns
- Pearson correlation coefficient.
double theplu::yat::statistics::AveragerPair::covariance |
( |
void |
| ) |
const |
Calculating covariance using , where is the mean.
- Returns
- The covariance.
double theplu::yat::statistics::AveragerPair::mean_xy |
( |
void |
| ) |
const |
double theplu::yat::statistics::AveragerPair::msd |
( |
void |
| ) |
const |
- Returns
- Average squared deviation between x and y
long theplu::yat::statistics::AveragerPair::n |
( |
void |
| ) |
const |
- Returns
- The number of pair of data points.
double theplu::yat::statistics::AveragerPair::sum_squared_deviation |
( |
void |
| ) |
const |
- Returns
- Sum of squared deviation between x and y
double theplu::yat::statistics::AveragerPair::sum_xy |
( |
void |
| ) |
const |
double theplu::yat::statistics::AveragerPair::sum_xy_centered |
( |
void |
| ) |
const |
- Returns
-
const Averager& theplu::yat::statistics::AveragerPair::x_averager |
( |
void |
| ) |
const |
- Returns
- A const refencer to the averager object for x.
const Averager& theplu::yat::statistics::AveragerPair::y_averager |
( |
void |
| ) |
const |
- Returns
- A const reference to the averager object for y
template<class InputIterator1 , class InputIterator2 >
void add |
( |
AveragerPair & |
ap, |
|
|
InputIterator1 |
first1, |
|
|
InputIterator1 |
last1, |
|
|
InputIterator2 |
first2 |
|
) |
| |
|
related |
adding data from two ranges to AveragerPair ap
Type Requirements:
The documentation for this class was generated from the following file: