|
| RunCalc (const CalcSetup &s) |
|
RunCalc< T > & | addValue (T data, T weight=1) |
|
RunCalc< T > & | addValues (size_type sz, const T *data, const T *weights=0) |
|
| mUseType (CalcSetup, idx_type) |
|
| mUseType (CalcSetup, size_type) |
|
RunCalc< T > & | operator+= (T t) |
|
RunCalc< T > & | removeValue (T data, T weight=1) |
|
RunCalc< T > & | replaceValue (T olddata, T newdata, T wt=1) |
|
virtual | ~BaseCalc () |
|
double | average () const |
|
void | clear () |
|
T | clipVal (float ratio, bool upper) const |
| requires sort; 0 <= ratio <= 1 More...
|
|
size_type | count () const |
|
T | extreme (idx_type *index_of_extr=0) const |
|
idx_type | getIndex (Type) const |
| only for Median, Min and Max More...
|
|
double | getValue (Type) const |
|
bool | hasUndefs () const |
|
bool | isEmpty () const |
|
bool | isWeighted () const |
|
T | max (idx_type *index_of_max=0) const |
|
T | median (idx_type *index_of_median=0) const |
|
const T * | medValsArr () const |
|
T | min (idx_type *index_of_min=0) const |
|
T | mostFreq () const |
|
float_complex | mostFreq () const |
|
| mUseType (CalcSetup, idx_type) |
|
| mUseType (CalcSetup, size_type) |
|
double | normvariance () const |
|
double | rms () const |
|
const CalcSetup & | setup () const |
|
size_type | size (bool used=true) const |
|
T | sqSum () const |
|
double | stdDev () const |
|
T | sum () const |
|
virtual double | variance () const |
|
double | variance () const |
|
template<class T>
class Stats::RunCalc< T >
Calculates mean, min, max etc., as running values.
The idea is that you simply add values and ask for a stat whenever needed. The clear() method resets the object and makes it able to work with new data.
Adding values can be doing with weight (addValue) or without (operator +=). You can remove a value; for Min or Max this has no effect as this would require buffering all data.