Public Member Functions | Protected Attributes
Statistics< T > Class Template Reference

This class calculates mean and standard deviation for incremental values. More...

#include <statistics.h>

List of all members.

Public Member Functions

void addMeasurement (T val)
getMax () const
getMean () const
getMin () const
int getNumMeasurements () const
getStandardDeviation () const
void print (const double factor=1.0) const
void reset ()
 Statistics (const char *name="")

Protected Attributes

_max
_min
const char * _name
double _numMeasurements
_sumMeasurements
_sumSquaredMeasurements

Detailed Description

template<class T>
class Statistics< T >

This class calculates mean and standard deviation for incremental values.

Definition at line 10 of file statistics.h.


Constructor & Destructor Documentation

template<class T >
Statistics< T >::Statistics ( const char *  name = "")

Definition at line 39 of file statistics.h.


Member Function Documentation

template<class T>
void Statistics< T >::addMeasurement ( val)

Definition at line 55 of file statistics.h.

template<class T>
T Statistics< T >::getMax ( ) const [inline]

Definition at line 23 of file statistics.h.

template<class T >
T Statistics< T >::getMean ( ) const

Definition at line 67 of file statistics.h.

template<class T>
T Statistics< T >::getMin ( ) const [inline]

Definition at line 22 of file statistics.h.

template<class T >
int Statistics< T >::getNumMeasurements ( ) const

Definition at line 84 of file statistics.h.

template<class T >
T Statistics< T >::getStandardDeviation ( ) const

Definition at line 75 of file statistics.h.

template<class T >
void Statistics< T >::print ( const double  factor = 1.0) const

Definition at line 90 of file statistics.h.

template<class T >
void Statistics< T >::reset ( )

Definition at line 45 of file statistics.h.


Member Data Documentation

template<class T>
T Statistics< T >::_max [protected]

Definition at line 33 of file statistics.h.

template<class T>
T Statistics< T >::_min [protected]

Definition at line 32 of file statistics.h.

template<class T>
const char* Statistics< T >::_name [protected]

Definition at line 35 of file statistics.h.

template<class T>
double Statistics< T >::_numMeasurements [protected]

Definition at line 30 of file statistics.h.

template<class T>
T Statistics< T >::_sumMeasurements [protected]

Definition at line 28 of file statistics.h.

template<class T>
T Statistics< T >::_sumSquaredMeasurements [protected]

Definition at line 29 of file statistics.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


tfd_modules
Author(s): Maintained by Christian Dornhege (see AUTHORS file).
autogenerated on Tue Jan 22 2013 12:25:04