WSF
WsfCoverageMeasureGridStats.hpp
Go to the documentation of this file.
1// ****************************************************************************
2// CUI
3//
4// The Advanced Framework for Simulation, Integration, and Modeling (AFSIM)
5//
6// Copyright 2020 Infoscitex, a DCS Company. All rights reserved.
7//
8// The use, dissemination or disclosure of data in this file is subject to
9// limitation or restriction. See accompanying README and LICENSE for details.
10// ****************************************************************************
11
12#ifndef WSFCOVERAGEMEASUREGRIDSTATS_HPP
13#define WSFCOVERAGEMEASUREGRIDSTATS_HPP
14
15#include "wsf_coverage_export.h"
16
17#include <limits>
18
19namespace wsf
20{
21namespace coverage
22{
23
24class Coverage;
25class Measure;
26
28class WSF_COVERAGE_EXPORT MeasureGridStats
29{
30public:
31 MeasureGridStats(const Coverage& aCoverage, const Measure& aMeasure);
32
34 double GetMinValue() const { return mMinValue; }
35
37 double GetMaxValue() const { return mMaxValue; }
38
40 double GetMeanValue() const { return mMeanValue; }
41
43 int GetCount() const { return mCount; }
44
45private:
46 double mMinValue{std::numeric_limits<double>::max()};
47 double mMaxValue{std::numeric_limits<double>::lowest()};
48 double mMeanValue{};
49 int mCount{};
50};
51
52} // namespace coverage
53} // namespace wsf
54
55#endif // WSFCOVERAGEMEASUREGRIDSTATS_HPP
Definition WsfCoverage.hpp:57
double GetMeanValue() const
Return the mean value over the grid.
Definition WsfCoverageMeasureGridStats.hpp:40
double GetMaxValue() const
Return the maximum value over the grid.
Definition WsfCoverageMeasureGridStats.hpp:37
int GetCount() const
Return the number of values from which the statistics were computed.
Definition WsfCoverageMeasureGridStats.hpp:43
double GetMinValue() const
Return the minimum value over the grid.
Definition WsfCoverageMeasureGridStats.hpp:34
MeasureGridStats(const Coverage &aCoverage, const Measure &aMeasure)
Definition WsfCoverageMeasureGridStats.cpp:24
Definition WsfCoverageMeasure.hpp:43
Definition WsfCoverage.cpp:35
Function definitions for those who need run-time access to the version.
Definition WsfComm.cpp:32
Copyrights Multiple, All Rights Reserved