#include <yat/statistics/AveragerPair.h>
Public Member Functions | |
AveragerPair (void) | |
The default constructor. | |
AveragerPair (const AveragerPair &) | |
void | add (const double x, const double y, const long n=1) |
double | ccc (void) const |
Concordence correlation coefficient. | |
double | correlation (void) const |
double | covariance (void) const |
double | mean_xy (void) const |
double | msd (void) const |
long | n (void) const |
void | reset (void) |
Reset everything to zero. | |
double | sum_xy (void) const |
double | sum_squared_deviation (void) const |
double | sum_xy_centered (void) const |
const Averager & | x_averager (void) const |
const Averager & | y_averager (void) const |
const AveragerPair & | operator= (const AveragerPair &a) |
The assigment operator. | |
const AveragerPair & | operator+= (const AveragerPair &) |
Related Functions | |
(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 |
theplu::yat::statistics::AveragerPair::AveragerPair | ( | const AveragerPair & | ) |
Constructor taking sum of x , xx , y , yy , xy and number of pair of values n The copy constructor
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 |
double theplu::yat::statistics::AveragerPair::covariance | ( | void | ) | const |
Calculating covariance using , where is the mean.
double theplu::yat::statistics::AveragerPair::mean_xy | ( | void | ) | const |
double theplu::yat::statistics::AveragerPair::msd | ( | void | ) | const |
long theplu::yat::statistics::AveragerPair::n | ( | void | ) | const |
const AveragerPair& theplu::yat::statistics::AveragerPair::operator+= | ( | const AveragerPair & | ) |
Operator to add another Averager
double theplu::yat::statistics::AveragerPair::sum_squared_deviation | ( | void | ) | const |
double theplu::yat::statistics::AveragerPair::sum_xy | ( | void | ) | const |
double theplu::yat::statistics::AveragerPair::sum_xy_centered | ( | void | ) | const |
const Averager& theplu::yat::statistics::AveragerPair::x_averager | ( | void | ) | const |
const Averager& theplu::yat::statistics::AveragerPair::y_averager | ( | void | ) | const |