IDataStatistics.h
Go to the documentation of this file.
1 #ifndef imeas_IDataStatistics_included
2 #define imeas_IDataStatistics_included
3 
4 
5 #include <istd/TRange.h>
6 
7 #include <iser/ISerializable.h>
8 
9 
10 namespace imeas
11 {
12 
13 
18 class IDataStatistics: virtual public istd::IChangeable
19 {
20 public:
22  {
23  SSF_BOUNDARIES = 1 << 0,
25  SSF_AVERAGE = 1 << 2,
26  SSF_MEDIAN = 1 << 3
27  };
28 
32  virtual int GetSupportedStatFeatures() const = 0;
33 
37  virtual istd::CRange GetDataBoundaries() const = 0;
38 
42  virtual double GetStandardDeviation() const = 0;
43 
47  virtual double GetAverage() const = 0;
48 
52  virtual double GetMedian() const = 0;
53 };
54 
55 
56 } // namespace imeas
57 
58 
59 #endif // !imeas_IDataStatistics_included
60 
61 
virtual double GetAverage() const =0
Get data average.
Common interace for simple data statistics.
virtual istd::CRange GetDataBoundaries() const =0
Get the range of values in the data sequence.
virtual double GetStandardDeviation() const =0
Get data variance.
virtual double GetMedian() const =0
Get data median.
virtual int GetSupportedStatFeatures() const =0
Get set of supported statistical features.

© 2007-2017 Witold Gantzke and Kirill Lepskiy