Container for simple statistics for single variable. More...
#include <mi32/statsimple.h>
Public Member Functions | |
| STAT_SIMPLE () | |
| ~STAT_SIMPLE () | |
| void | Add (double value, double weight=1) |
| void | Clear () |
| double | ComputeMean () const |
| double | ComputeStandardDeviation () const |
| double | GetFirst () const |
| double | GetLast () const |
| double | GetMaximum () const |
| double | GetMinimum () const |
| double | GetSum () const |
| double | GetTotalWeight () const |
Container for simple statistics for single variable.
Statistics include minimum, maximum, sum, total weight, with methods to compute mean, variance.
| STAT_SIMPLE::STAT_SIMPLE | ( | ) |
Default constructor.
| STAT_SIMPLE::~STAT_SIMPLE | ( | ) |
Destructor.
| void STAT_SIMPLE::Add | ( | double | value, | |
| double | weight = 1 | |||
| ) |
Add value with optional weight.
| weight | Weight for this value, must be positive |
| void STAT_SIMPLE::Clear | ( | ) |
Clear statistics.
| double STAT_SIMPLE::ComputeMean | ( | ) | const |
Compute mean per unit weight.
| double STAT_SIMPLE::ComputeStandardDeviation | ( | ) | const |
Compute standard deviation.
| double STAT_SIMPLE::GetFirst | ( | ) | const [inline] |
Get first value added.
| double STAT_SIMPLE::GetLast | ( | ) | const [inline] |
Get last value added.
| double STAT_SIMPLE::GetMaximum | ( | ) | const [inline] |
Get maximum value.
| double STAT_SIMPLE::GetMinimum | ( | ) | const [inline] |
Get minimum value.
| double STAT_SIMPLE::GetSum | ( | ) | const [inline] |
Get weighted sum of all values added.
| double STAT_SIMPLE::GetTotalWeight | ( | ) | const [inline] |
Get total weight of values added.
1.6.1