16 #ifndef __OMNETPP_CABSTRACTHISTOGRAM_H 17 #define __OMNETPP_CABSTRACTHISTOGRAM_H 39 Bin() {lower=upper=value=relativeFreq=0;}
47 const Bin& internalGetBinInfo(
int k)
const;
87 virtual bool binsAlreadySetUp()
const = 0;
94 virtual void setUpBins() = 0;
99 virtual int getNumBins()
const = 0;
108 virtual double getBinEdge(
int k)
const = 0;
114 virtual double getBinValue(
int k)
const = 0;
121 virtual double getBinPDF(
int k)
const;
128 virtual int64_t getNumUnderflows()
const = 0;
135 virtual int64_t getNumOverflows()
const = 0;
142 virtual double getUnderflowSumWeights()
const = 0;
149 virtual double getOverflowSumWeights()
const = 0;
154 virtual int64_t getNumNegInfs()
const = 0;
159 virtual int64_t getNumPosInfs()
const = 0;
164 virtual double getNegInfSumWeights()
const = 0;
169 virtual double getPosInfSumWeights()
const = 0;
175 virtual Bin getBinInfo(
int k)
const;
184 virtual double getPDF(
double x)
const;
189 virtual double getCDF(
double x)
const;
194 virtual double draw()
const override;
203 _OPPDEPRECATED
virtual bool isTransformed() const final {
return binsAlreadySetUp();}
208 _OPPDEPRECATED
virtual void transform() final {setUpBins();}
213 _OPPDEPRECATED
virtual int getNumCells() const final {
return getNumBins();}
218 _OPPDEPRECATED
virtual double getBasepoint(
int k)
const final {
return getBinEdge(k);}
223 _OPPDEPRECATED
virtual double getCellValue(
int k)
const final {
return getBinValue(k);}
228 _OPPDEPRECATED
virtual double getCellPDF(
int k)
const final {
return getBinPDF(k);}
238 _OPPDEPRECATED
virtual int64_t
getOverflowCell() const final {
return getNumOverflows();}
243 _OPPDEPRECATED
virtual Bin getCellInfo(
int k)
const final {
return getBinInfo(k);}
virtual _OPPDEPRECATED int64_t getUnderflowCell() const final
Definition: cabstracthistogram.h:233
virtual _OPPDEPRECATED int getNumCells() const final
Definition: cabstracthistogram.h:213
Thrown when the simulation kernel or other components detect a runtime error.
Definition: cexception.h:283
Interface and base class for histogram-like density estimation classes.
Definition: cabstracthistogram.h:26
virtual ~cAbstractHistogram()
Definition: cabstracthistogram.h:66
cAbstractHistogram(const cAbstractHistogram &other)
Definition: cabstracthistogram.h:56
cAbstractHistogram(const char *name=nullptr, bool weighted=false)
Definition: cabstracthistogram.h:61
cStdDev & operator=(const cStdDev &res)
virtual cAbstractHistogram * dup() const override
Definition: cabstracthistogram.h:79
virtual _OPPDEPRECATED double getBasepoint(int k) const final
Definition: cabstracthistogram.h:218
virtual _OPPDEPRECATED Bin getCellInfo(int k) const final
Definition: cabstracthistogram.h:243
virtual _OPPDEPRECATED int64_t getOverflowCell() const final
Definition: cabstracthistogram.h:238
virtual _OPPDEPRECATED double getCellValue(int k) const final
Definition: cabstracthistogram.h:223
virtual _OPPDEPRECATED double getCellPDF(int k) const final
Definition: cabstracthistogram.h:228
virtual _OPPDEPRECATED void transform() final
Definition: cabstracthistogram.h:208
Definition: cabstracthistogram.h:21
cAbstractHistogram & operator=(const cAbstractHistogram &res)
Definition: cabstracthistogram.h:71
Statistics class to collect min, max, mean, and standard deviation.
Definition: cstddev.h:29
Information about a histogram bin. This struct is not used internally by the histogram classes...
Definition: cabstracthistogram.h:33
virtual _OPPDEPRECATED bool isTransformed() const final
Definition: cabstracthistogram.h:203