18 #ifndef __OMNETPP_CPSQUARE_H 19 #define __OMNETPP_CPSQUARE_H 21 #include "cabstracthistogram.h" 43 long numNegInfs, numPosInfs;
47 void ensureStrictlyIncreasingEdges();
61 explicit cPSquare(
const char *name=
nullptr,
int bins=10);
88 virtual void parsimPack(
cCommBuffer *buffer)
const override;
95 virtual void parsimUnpack(
cCommBuffer *buffer)
override;
116 virtual void collect(
double value)
override;
123 virtual void collectWeighted(
double value,
double weight)
override;
129 virtual int getNumBins()
const override;
136 virtual double getBinEdge(
int k)
const override;
141 virtual double getBinValue(
int k)
const override;
196 virtual double draw()
const override;
201 virtual void merge(
const cStatistic *other)
override;
206 virtual void clear()
override;
211 virtual void saveToFile(FILE *)
const override;
216 virtual void loadFromFile(FILE *)
override;
virtual int64_t getNumOverflows() const override
Definition: cpsquare.h:155
virtual double getOverflowSumWeights() const override
Definition: cpsquare.h:167
virtual double getPosInfSumWeights() const override
Definition: cpsquare.h:191
virtual int64_t getNumPosInfs() const override
Definition: cpsquare.h:177
virtual void collect(double value)=0
Interface and base class for histogram-like density estimation classes.
Definition: cabstracthistogram.h:26
virtual double getUnderflowSumWeights() const override
Definition: cpsquare.h:161
virtual double getNegInfSumWeights() const override
Definition: cpsquare.h:184
virtual int64_t getNumNegInfs() const override
Definition: cpsquare.h:172
virtual void collectWeighted(double value, double weight)
Buffer for the communications layer of parallel simulation.
Definition: ccommbuffer.h:41
Implements the P2 algorithm, which calculates quantile values without storing the observations...
Definition: cpsquare.h:35
virtual void setUpBins() override
Definition: cpsquare.h:111
Definition: cabstracthistogram.h:21
virtual int64_t getNumUnderflows() const override
Definition: cpsquare.h:148
virtual bool binsAlreadySetUp() const override
Definition: cpsquare.h:105
virtual cPSquare * dup() const override
Definition: cpsquare.h:81
cStatistic is an abstract class for computing statistical properties of a random variable.
Definition: cstatistic.h:34