OMNeT++ Simulation Library
6.0.3
|
18 #ifndef __OMNETPP_CPSQUARE_H
19 #define __OMNETPP_CPSQUARE_H
21 #include "cabstracthistogram.h"
43 long numNegInfs = 0, numPosInfs = 0;
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 void setUpBins() override
Definition: cpsquare.h:111
virtual void collectWeighted(double value, double weight)
Implements the P2 algorithm, which calculates quantile values without storing the observations....
Definition: cpsquare.h:35
virtual int64_t getNumNegInfs() const override
Definition: cpsquare.h:172
virtual double getNegInfSumWeights() const override
Definition: cpsquare.h:184
virtual int64_t getNumOverflows() const override
Definition: cpsquare.h:155
virtual bool binsAlreadySetUp() const override
Definition: cpsquare.h:105
virtual void collect(double value)=0
virtual cPSquare * dup() const override
Definition: cpsquare.h:81
virtual int64_t getNumUnderflows() const override
Definition: cpsquare.h:148
Interface and base class for histogram-like density estimation classes.
Definition: cabstracthistogram.h:26
virtual int64_t getNumPosInfs() const override
Definition: cpsquare.h:177
virtual double getPosInfSumWeights() const override
Definition: cpsquare.h:191
cStatistic is an abstract class for computing statistical properties of a random variable.
Definition: cstatistic.h:34
virtual double getUnderflowSumWeights() const override
Definition: cpsquare.h:161
Buffer for the communications layer of parallel simulation.
Definition: ccommbuffer.h:41
virtual double getOverflowSumWeights() const override
Definition: cpsquare.h:167