MDSTk Libraries
1.1.0
Medical Data Segmentation Toolkit
|
The functional object can be used to estimate mean value of a sequence of numbers. More...
#include <mdsFunctional.h>
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. | |
R | m_Sum |
Sum of all values. |
The functional object can be used to estimate mean value of a sequence of numbers.
mds::base::CMeanValue< R, T >::CMeanValue | ( | ) |
Default constructor.
R& mds::base::CMeanValue< R, T >::getValue | ( | ) |
Returns the actual minimum.
void mds::base::CMeanValue< R, T >::operator() | ( | const T & | Value | ) |
Operator compares a given value to the actual minimum.
long mds::base::CMeanValue< R, T >::m_NumOfValues [protected] |
Total number of values.
R mds::base::CMeanValue< R, T >::m_Sum [protected] |
Sum of all values.