ICF 3.1.1.10
Technical documentation of ICF Libraries
CSimpleDataStatistics.h
Go to the documentation of this file.
1/********************************************************************************
2** This file is part of the ICF Framework. Copyright (C) Witold Gantzke & Kirill Lepskiy
3** ICF Framework may be used under the terms of the LGPL License v. 2.1 by the Free Software Foundation.
4********************************************************************************/
5
6#ifndef imeas_CSimpleDataStatistics_included
7#define imeas_CSimpleDataStatistics_included
8
9
11
12
13namespace imeas
14{
15
16
21 virtual public imeas::IDataStatistics,
22 virtual public iser::ISerializable
23{
24public:
27 double average,
28 double median,
29 double standardDeviation,
30 const istd::CRange& dataBoundaries);
31
32 virtual void CreateStatistics(
33 double average,
34 double median,
35 double standardDeviation,
36 const istd::CRange& dataBoundaries);
37
38 // reimplemented (imeas::IDataStatistics)
39 virtual int GetSupportedStatFeatures() const;
41 virtual double GetStandardDeviation() const;
42 virtual double GetAverage() const;
43 virtual double GetMedian() const;
44
45 // reimplemented (iser::ISerializable)
46 virtual bool Serialize(iser::IArchive& archive);
47
48private:
49 double m_average;
50 double m_median;
51 double m_standardDeviation;
52 istd::CRange m_dataBoundaries;
53};
54
55
56} // namespace imeas
57
58
59#endif // !imeas_CSimpleDataStatistics_included
60
61
General implementation of the IDataStatistics interface.
virtual double GetAverage() const
Get data average.
virtual bool Serialize(iser::IArchive &archive)
Load or store state of this object as a archive stream.
CSimpleDataStatistics(double average, double median, double standardDeviation, const istd::CRange &dataBoundaries)
virtual istd::CRange GetDataBoundaries() const
Get the range of values in the data sequence.
virtual double GetMedian() const
Get data median.
virtual int GetSupportedStatFeatures() const
Get set of supported statistical features.
virtual double GetStandardDeviation() const
Get data variance.
virtual void CreateStatistics(double average, double median, double standardDeviation, const istd::CRange &dataBoundaries)
Common interace for simple data statistics.
Represent input/output persistence archive.
Definition IArchive.h:34
Common class for all classes which objects can be archived or restored from archive.
This namespace contains classes for measurement system implementations.

© Witold Gantzke and Kirill Lepskiy