|
MIRA
|
#include <math/IncrementalMoments.h>

Classes | |
| struct | Ctx |
Public Types | |
| typedef Eigen::Matrix< T, D, 1 > | Vector |
| typedef Eigen::Matrix< T, D, D > | Matrix |
Public Member Functions | |
| IncrementalMoments () | |
| void | reset () |
| void | insert (const Vector &x, T weight=T(1)) |
| inserts a new sample More... | |
| T | sumWeight () const |
| Returns the sum of all sample weights, if all samples have the weight 1.0 this corresponds to the number of samples. More... | |
| const Vector & | mean () const |
| Returns the computed mean. More... | |
Protected Member Functions | |
| void | _insert (const Vector &x, T weight, Ctx &ctx) |
Protected Attributes | |
| T | k |
| the cumulated weights More... | |
| Vector | m1 |
| the computed mean More... | |
| typedef Eigen::Matrix<T,D,1> Vector |
| typedef Eigen::Matrix<T,D,D> Matrix |
|
inline |
|
inline |
|
inline |
inserts a new sample
|
inline |
Returns the sum of all sample weights, if all samples have the weight 1.0 this corresponds to the number of samples.
|
inline |
Returns the computed mean.
|
inlineprotected |
|
protected |
the cumulated weights
|
protected |
the computed mean
1.8.14