1 // =========================================================================
2 // @author Leonardo Florez Valencia
3 // @email florez-l@javeriana.edu.co
4 // =========================================================================
5 #ifndef __fpa__Common__IncrementalMeanAndVariance__h__
6 #define __fpa__Common__IncrementalMeanAndVariance__h__
8 #include <fpa/fpa_export.h>
16 class FPA_EXPORT IncrementalMeanAndVariance
19 typedef IncrementalMeanAndVariance Self;
22 IncrementalMeanAndVariance( );
23 virtual ~IncrementalMeanAndVariance( );
25 double GetMean( ) const;
26 double GetVariance( ) const;
27 double GetDeviation( ) const;
28 unsigned long GetNumberOfSamples( ) const;
31 void AddValue( double v );
43 #endif // __fpa__Common__IncrementalMeanAndVariance__h__