CSimpleDataStatistics.h
Go to the documentation of this file.
1 #ifndef imeas_CSimpleDataStatistics_included
2 #define imeas_CSimpleDataStatistics_included
3 
4 
6 
7 
8 namespace imeas
9 {
10 
11 
16  virtual public imeas::IDataStatistics,
17  virtual public iser::ISerializable
18 {
19 public:
22  double average,
23  double median,
24  double standardDeviation,
25  const istd::CRange& dataBoundaries);
26 
27  virtual void CreateStatistics(
28  double average,
29  double median,
30  double standardDeviation,
31  const istd::CRange& dataBoundaries);
32 
33  // reimplemented (imeas::IDataStatistics)
34  virtual int GetSupportedStatFeatures() const;
35  virtual istd::CRange GetDataBoundaries() const;
36  virtual double GetStandardDeviation() const;
37  virtual double GetAverage() const;
38  virtual double GetMedian() const;
39 
40  // reimplemented (iser::ISerializable)
41  virtual bool Serialize(iser::IArchive& archive);
42 
43 private:
44  double m_average;
45  double m_median;
46  double m_standardDeviation;
47  istd::CRange m_dataBoundaries;
48 };
49 
50 
51 } // namespace imeas
52 
53 
54 #endif // !imeas_CSimpleDataStatistics_included
55 
56 
General implementation of the IDataStatistics interface.
virtual istd::CRange GetDataBoundaries() const
Get the range of values in the data sequence.
Common interace for simple data statistics.
virtual int GetSupportedStatFeatures() const
Get set of supported statistical features.
virtual double GetMedian() const
Get data median.
virtual void CreateStatistics(double average, double median, double standardDeviation, const istd::CRange &dataBoundaries)
virtual double GetStandardDeviation() const
Get data variance.
virtual bool Serialize(iser::IArchive &archive)
virtual double GetAverage() const
Get data average.

© 2007-2017 Witold Gantzke and Kirill Lepskiy