+++ /dev/null
-// =========================================================================
-// @author Leonardo Florez Valencia
-// @email florez-l@javeriana.edu.co
-// =========================================================================
-#ifndef __fpa__Common__IncrementalMeanAndVariance__h__
-#define __fpa__Common__IncrementalMeanAndVariance__h__
-
-#include <fpa/fpa_export.h>
-
-namespace fpa
-{
- namespace Common
- {
- /**
- */
- class FPA_EXPORT IncrementalMeanAndVariance
- {
- public:
- typedef IncrementalMeanAndVariance Self;
-
- public:
- IncrementalMeanAndVariance( );
- virtual ~IncrementalMeanAndVariance( );
-
- double GetMean( ) const;
- double GetVariance( ) const;
- double GetDeviation( ) const;
- unsigned long GetNumberOfSamples( ) const;
-
- void Clear( );
- void AddValue( double v );
-
- protected:
- double m_M;
- double m_V;
- double m_N;
- };
-
- } // ecapseman
-
-} // ecapseman
-
-#endif // __fpa__Common__IncrementalMeanAndVariance__h__
-// eof - $RCSfile$