#include <yat/statistics/AveragerPairWeighted.h>
Public Member Functions | |
AveragerPairWeighted (void) | |
The default constructor. | |
void | add (const double x, const double y, const double wx, const double wy) |
double | correlation (void) const |
Pearson correlation coefficient. | |
double | covariance (void) const |
double | msd (void) const |
double | n (void) const |
void | reset (void) |
Reset everything to zero. | |
double | sum_w (void) const |
double | sum_xy (void) const |
double | sum_xy_centered (void) const |
const AveragerWeighted & | x_averager (void) const |
const AveragerWeighted & | y_averager (void) const |
Related Functions | |
(Note that these are not member functions.) | |
template<class InputIterator1 , class InputIterator2 > | |
void | add (AveragerPairWeighted &ap, InputIterator1 first1, InputIterator1 last1, InputIterator2 first2) |
adding a ranges of values to AveragerPairWeighted ap | |
template<typename InputIterator1 , typename InputIterator2 , typename InputIterator3 , typename InputIterator4 > | |
void | add (AveragerPairWeighted &ap, InputIterator1 x, InputIterator1 xlast, InputIterator2 y, InputIterator3 wx, InputIterator4 wy) |
adding four ranges of values to AveragerPairWeighted ap |
void theplu::yat::statistics::AveragerPairWeighted::add | ( | const double | x, | |
const double | y, | |||
const double | wx, | |||
const double | wy | |||
) |
Adding a pair of data points with value x and y, and their weights. If either of the weights are zero the addition is ignored
double theplu::yat::statistics::AveragerPairWeighted::correlation | ( | void | ) | const |
Pearson correlation coefficient.
double theplu::yat::statistics::AveragerPairWeighted::covariance | ( | void | ) | const |
where m is calculated as
double theplu::yat::statistics::AveragerPairWeighted::msd | ( | void | ) | const |
double theplu::yat::statistics::AveragerPairWeighted::n | ( | void | ) | const |
double theplu::yat::statistics::AveragerPairWeighted::sum_w | ( | void | ) | const |
double theplu::yat::statistics::AveragerPairWeighted::sum_xy | ( | void | ) | const |
double theplu::yat::statistics::AveragerPairWeighted::sum_xy_centered | ( | void | ) | const |
const AveragerWeighted& theplu::yat::statistics::AveragerPairWeighted::x_averager | ( | void | ) | const |
const AveragerWeighted& theplu::yat::statistics::AveragerPairWeighted::y_averager | ( | void | ) | const |
void add | ( | AveragerPairWeighted & | ap, | |
InputIterator1 | x, | |||
InputIterator1 | xlast, | |||
InputIterator2 | y, | |||
InputIterator3 | wx, | |||
InputIterator4 | wy | |||
) | [related] |
adding four ranges of values to AveragerPairWeighted ap
Iterators must be unweighted.