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 iser::ISerializable
19 {
20 public:
21 
25  virtual void CreateStatistics(
26  double average,
27  double median,
28  double standardDeviation,
29  const istd::CRange& dataBoundaries) = 0;
30 
34  virtual istd::CRange GetDataBoundaries() const = 0;
35 
39  virtual double GetStandardDeviation() const = 0;
40 
44  virtual double GetAverage() const = 0;
45 
49  virtual double GetMedian() const = 0;
50 };
51 
52 
53 } // namespace imeas
54 
55 
56 #endif // !imeas_IDataStatistics_included
57 
58 
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 void CreateStatistics(double average, double median, double standardDeviation, const istd::CRange &dataBoundaries)=0
Create statistics object from the input data.

© 2007-2011 Witold Gantzke and Kirill Lepskiy