Class for taking care of mean and covariance of two variables in a weighted manner.
More...
#include <yat/statistics/AveragerPairWeighted.h>
|
(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 More...
|
|
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 More...
|
|
Class for taking care of mean and covariance of two variables in a weighted manner.
- See Also
- Weighted Statistics
If nothing else stated, each function fulfills the following:
-
Setting a weight to zero corresponds to removing the data point from the dataset.
-
Setting all weights to unity, the yields the same result as from corresponding function in AveragerPair.
-
Rescaling weights does not change the performance of the object.
- See Also
- Averager AveragerWeighted AveragerPair
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.
- Returns
- where m is calculated as
double theplu::yat::statistics::AveragerPairWeighted::covariance |
( |
void |
| ) |
const |
where m is calculated as
double theplu::yat::statistics::AveragerPairWeighted::msd |
( |
void |
| ) |
const |
- Returns
-
double theplu::yat::statistics::AveragerPairWeighted::n |
( |
void |
| ) |
const |
- Returns
-
double theplu::yat::statistics::AveragerPairWeighted::sum_w |
( |
void |
| ) |
const |
- Returns
-
double theplu::yat::statistics::AveragerPairWeighted::sum_xy |
( |
void |
| ) |
const |
- Returns
-
double theplu::yat::statistics::AveragerPairWeighted::sum_xy_centered |
( |
void |
| ) |
const |
- Returns
- where m is calculated as
const AveragerWeighted& theplu::yat::statistics::AveragerPairWeighted::x_averager |
( |
void |
| ) |
const |
const AveragerWeighted& theplu::yat::statistics::AveragerPairWeighted::y_averager |
( |
void |
| ) |
const |
template<class InputIterator1 , class InputIterator2 >
void add |
( |
AveragerPairWeighted & |
ap, |
|
|
InputIterator1 |
first1, |
|
|
InputIterator1 |
last1, |
|
|
InputIterator2 |
first2 |
|
) |
| |
|
related |
template<typename InputIterator1 , typename InputIterator2 , typename InputIterator3 , typename InputIterator4 >
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.
Type Requirement:
The documentation for this class was generated from the following file: