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

© 2007-2011 Witold Gantzke and Kirill Lepskiy