#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 |
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 |