This class calculates mean and standard deviation for incremental values. More...
#include <statistics.h>
Public Member Functions | |
void | addMeasurement (T val) |
T | getMax () const |
T | getMean () const |
T | getMin () const |
int | getNumMeasurements () const |
T | getStandardDeviation () const |
void | print (const double factor=1.0) const |
void | reset () |
Statistics (const char *name="") | |
Protected Attributes | |
T | _max |
T | _min |
const char * | _name |
double | _numMeasurements |
T | _sumMeasurements |
T | _sumSquaredMeasurements |
This class calculates mean and standard deviation for incremental values.
Definition at line 10 of file statistics.h.
Statistics< T >::Statistics | ( | const char * | name = "" | ) |
Definition at line 39 of file statistics.h.
void Statistics< T >::addMeasurement | ( | T | val | ) |
Definition at line 55 of file statistics.h.
T Statistics< T >::getMax | ( | ) | const [inline] |
Definition at line 23 of file statistics.h.
T Statistics< T >::getMean | ( | ) | const |
Definition at line 67 of file statistics.h.
T Statistics< T >::getMin | ( | ) | const [inline] |
Definition at line 22 of file statistics.h.
int Statistics< T >::getNumMeasurements | ( | ) | const |
Definition at line 84 of file statistics.h.
T Statistics< T >::getStandardDeviation | ( | ) | const |
Definition at line 75 of file statistics.h.
void Statistics< T >::print | ( | const double | factor = 1.0 | ) | const |
Definition at line 90 of file statistics.h.
void Statistics< T >::reset | ( | ) |
Definition at line 45 of file statistics.h.
T Statistics< T >::_max [protected] |
Definition at line 33 of file statistics.h.
T Statistics< T >::_min [protected] |
Definition at line 32 of file statistics.h.
const char* Statistics< T >::_name [protected] |
Definition at line 35 of file statistics.h.
double Statistics< T >::_numMeasurements [protected] |
Definition at line 30 of file statistics.h.
T Statistics< T >::_sumMeasurements [protected] |
Definition at line 28 of file statistics.h.
T Statistics< T >::_sumSquaredMeasurements [protected] |
Definition at line 29 of file statistics.h.