MIRA
|
#include <math/IncrementalMoments.h>
Public Member Functions | |
IncrementalMoments () | |
void | reset () |
void | insert (const Vector &x, T weight=T(1)) |
inserts a new sample More... | |
Matrix | cov () const |
Returns the computed covariance. 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) |
void | _insert (const Vector &x, T weight, Ctx &ctx) |
Protected Attributes | |
Matrix | m2 |
the computed covariance More... | |
T | k |
the cumulated weights More... | |
Vector | m1 |
the computed mean More... | |
|
inline |
|
inline |
|
inline |
inserts a new sample
|
inline |
Returns the computed covariance.
|
inlineprotected |
|
inlineinherited |
Returns the sum of all sample weights, if all samples have the weight 1.0 this corresponds to the number of samples.
|
inlineinherited |
Returns the computed mean.
|
inlineprotectedinherited |
|
protected |
the computed covariance
|
protectedinherited |
the cumulated weights
|
protectedinherited |
the computed mean