STAT_SIMPLE Class Reference

Container for simple statistics for single variable. More...

#include <mi32/statsimple.h>

List of all members.

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

Detailed Description

Container for simple statistics for single variable.

Statistics include minimum, maximum, sum, total weight, with methods to compute mean, variance.


Constructor & Destructor Documentation

STAT_SIMPLE::STAT_SIMPLE (  ) 

Default constructor.

STAT_SIMPLE::~STAT_SIMPLE (  ) 

Destructor.


Member Function Documentation

void STAT_SIMPLE::Add ( double  value,
double  weight = 1 
)

Add value with optional weight.

Parameters:
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.


The documentation for this class was generated from the following file:

Generated on Sun Oct 7 21:33:51 2012 for TNTsdk 2012 by  doxygen 1.6.1