MIRA
|
#include <math/IncrementalMoments.h>
Classes | |
struct | Ctx |
Public Member Functions | |
IncrementalMoments () | |
void | reset () |
void | insert (const T &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... | |
T | mean () const |
Returns the computed mean. More... | |
Protected Member Functions | |
void | _insert (const T &x, T weight, Ctx &ctx) |
Protected Attributes | |
T | k |
the cumulated weights More... | |
T | m1 |
the computed mean More... | |
|
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