16 #ifndef __OMNETPP_CVARHIST_H 17 #define __OMNETPP_CVARHIST_H 19 #include "clegacyhistogram.h" 21 #if defined(__clang__) || defined(__GNUC__) 22 #pragma GCC diagnostic push 23 #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 57 double *cellLowerBounds;
69 void createEquiprobableCells();
115 virtual void parsimPack(
cCommBuffer *buffer)
const override;
122 virtual void parsimUnpack(
cCommBuffer *buffer)
override;
131 virtual void clear()
override;
136 virtual void setUpBins()
override;
142 virtual void collectIntoHistogram(
double value)
override;
148 virtual void collectWeightedIntoHistogram(
double value,
double weight)
override;
153 virtual double draw()
const override;
158 virtual double getPDF(
double x)
const override;
163 virtual double getCDF(
double x)
const override;
168 virtual double getBinEdge(
int k)
const override;
173 virtual double getBinValue(
int k)
const override;
178 virtual void saveToFile(FILE *)
const override;
183 virtual void loadFromFile(FILE *)
override;
195 virtual void addBinBound(
double x);
201 #if defined(__clang__) || defined(__GNUC__) 202 #pragma GCC diagnostic pop Base class for histogram classes. It adds a vector of counters to cPrecollectionBasedDensityEst.
Definition: clegacyhistogram.h:37
Variable bin size histogram.
Definition: cvarhist.h:40
no transformation; uses bin boundaries previously defined by addBinBound()/appendBinBound() ...
Definition: cvarhist.h:47
Buffer for the communications layer of parallel simulation.
Definition: ccommbuffer.h:41
virtual cVarHistogram * dup() const override
Definition: cvarhist.h:108
Definition: cabstracthistogram.h:21
TransformType
Definition: cvarhist.h:46
automatically creates equi-probable bins
Definition: cvarhist.h:48
cVarHistogram(const cVarHistogram &r)
Definition: cvarhist.h:78