MDSTk Libraries  1.1.0
Medical Data Segmentation Toolkit
Public Member Functions | Protected Attributes
mds::base::CMeanValue< R, T > Class Template Reference

The functional object can be used to estimate mean value of a sequence of numbers. More...

#include <mdsFunctional.h>

List of all members.

Public Member Functions

 CMeanValue ()
 Default constructor.
R & getValue ()
 Returns the actual minimum.
void operator() (const T &Value)
 Operator compares a given value to the actual minimum.

Protected Attributes

long m_NumOfValues
 Total number of values.
m_Sum
 Sum of all values.

Detailed Description

template<typename R, typename T>
class mds::base::CMeanValue< R, T >

The functional object can be used to estimate mean value of a sequence of numbers.


Constructor & Destructor Documentation

template<typename R , typename T >
mds::base::CMeanValue< R, T >::CMeanValue ( )

Default constructor.


Member Function Documentation

template<typename R , typename T >
R& mds::base::CMeanValue< R, T >::getValue ( )

Returns the actual minimum.

template<typename R , typename T >
void mds::base::CMeanValue< R, T >::operator() ( const T &  Value)

Operator compares a given value to the actual minimum.


Member Data Documentation

template<typename R , typename T >
long mds::base::CMeanValue< R, T >::m_NumOfValues [protected]

Total number of values.

template<typename R , typename T >
R mds::base::CMeanValue< R, T >::m_Sum [protected]

Sum of all values.


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