12#ifndef WSFCOVERAGEMEASURELATLONSTATS_HPP
13#define WSFCOVERAGEMEASURELATLONSTATS_HPP
15#include "wsf_coverage_export.h"
54 std::string GetProjectionDescription()
const;
57 std::size_t
GetSize()
const {
return mData.size(); }
60 double GetVariable(std::size_t aIndex)
const {
return mData[aIndex].mVariable; }
63 double GetMinValue(std::size_t aIndex)
const {
return mData[aIndex].mMinimum; }
66 double GetMaxValue(std::size_t aIndex)
const {
return mData[aIndex].mMaximum; }
69 double GetMeanValue(std::size_t aIndex)
const {
return mData[aIndex].mMean; }
72 int GetCount(std::size_t aIndex)
const {
return mData[aIndex].mCount; }
75 int BinIndexFromValue(
double aValue)
const;
76 double BinValueFromIndex(
int aIndex)
const;
77 static double ProjectLatitude(
const Point& aPoint);
78 static double ProjectLongitude(
const Point& aPoint);
81 using ProjectorFunction = double (*)(
const Point&);
86 BinData(
double aVariable,
double aValue)
87 : mVariable{aVariable}
95 void Accumulate(
const BinData& aOther);
105 Projection mProjection;
106 double mMinimumBinSize;
107 std::vector<BinData> mData{};
Definition WsfCoverage.hpp:57
Definition WsfCoverageMeasureLatLonStats.hpp:39
MeasureLatLonStats(const Coverage &aCoverage, const Measure &aMeasure, Projection aProjection, double aMinimumBinSize)
Definition WsfCoverageMeasureLatLonStats.cpp:28
Projection
The projection direction.
Definition WsfCoverageMeasureLatLonStats.hpp:43
std::size_t GetSize() const
Return the number of projected data points.
Definition WsfCoverageMeasureLatLonStats.hpp:57
double GetMeanValue(std::size_t aIndex) const
Return the mean value of the measured quantity for the given index.
Definition WsfCoverageMeasureLatLonStats.hpp:69
Projection GetProjection() const
Return the projection direction.
Definition WsfCoverageMeasureLatLonStats.hpp:51
int GetCount(std::size_t aIndex) const
Return the number of points that contributed to the mean for the given index.
Definition WsfCoverageMeasureLatLonStats.hpp:72
double GetMaxValue(std::size_t aIndex) const
Return the maximum value of the measured quantity for the given index.
Definition WsfCoverageMeasureLatLonStats.hpp:66
double GetMinValue(std::size_t aIndex) const
Return the minimum value of the measured quantity for the given index.
Definition WsfCoverageMeasureLatLonStats.hpp:63
double GetVariable(std::size_t aIndex) const
Return the latitude or longitude for the given index.
Definition WsfCoverageMeasureLatLonStats.hpp:60
Definition WsfCoverageMeasure.hpp:43
A point in a coverage grid.
Definition WsfCoverageGridPoint.hpp:40
Definition WsfCoverage.cpp:35
Function definitions for those who need run-time access to the version.
Definition WsfComm.cpp:32