Public Member Functions | Private Attributes

cmtk::Accumulators::Avg< TDataType > Class Template Reference

Average-value accumulator. More...

#include <cmtkAccumulatorAvg.h>

List of all members.

Public Member Functions

 Avg ()
 Default constructor.
void Reset ()
 Reset.
void AddValue (const TDataType &value)
 Add a value.
const TDataType GetResult () const
 Retrive accumulated result.

Private Attributes

TDataType m_Sum
 Current sum of values.
unsigned int m_Count
 Counter.

Detailed Description

template<class TDataType>
class cmtk::Accumulators::Avg< TDataType >

Average-value accumulator.

Definition at line 48 of file cmtkAccumulatorAvg.h.


Constructor & Destructor Documentation

template<class TDataType >
cmtk::Accumulators::Avg< TDataType >::Avg (  ) [inline]

Default constructor.

Definition at line 52 of file cmtkAccumulatorAvg.h.


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