Base class for histogram-like density estimation classes.
DEPRECATED CLASS, do not use for new classes.
For the histogram classes, you need to specify the number of bins and the range. Range can either be set explicitly or you can choose automatic range determination.
Automatic range estimation works in the following way:
- The first numPrecollect observations are stored.
- After having collected a given number of observations, the actual histogram is set up. The range (min, max) of the initial values is expanded rangeExtensionFactoror times, and the result will become the histogram's range (rangeMin, rangeMax). Based on the range, the bins are layed out.
- Then the initial values that have been stored up to this point will be transferred into the new histogram structure and their store is deleted – this is done by the setUpBins() function.
You may also explicitly specify the lower or upper limit and have the other end of the range estimated automatically. The setRange...() member functions of cPrecollectionBasedDensityEst deal with setting up the histogram range. It also provides pure virtual functions setUpBins() etc.
Subsequent observations are placed in the histogram structure. If an observation falls out of the histogram range, the underflow or overflow counter is incremented.
|
|
| cPrecollectionBasedDensityEst (const cPrecollectionBasedDensityEst &other) |
|
| cPrecollectionBasedDensityEst (const char *name=nullptr, bool weighted=false) |
|
virtual | ~cPrecollectionBasedDensityEst () |
|
cPrecollectionBasedDensityEst & | operator= (const cPrecollectionBasedDensityEst &res) |
|
|
virtual void | parsimPack (cCommBuffer *buffer) const override |
|
virtual void | parsimUnpack (cCommBuffer *buffer) override |
|
|
virtual void | collect (double value) override |
|
virtual void | collectWeighted (double value, double weight) override |
|
virtual void | merge (const cStatistic *other) override |
|
virtual void | clear () override |
|
virtual void | saveToFile (FILE *) const override |
|
virtual void | loadFromFile (FILE *) override |
|
virtual void | collect (double value)=0 |
|
virtual void | collect (SimTime value) |
|
virtual void | collectWeighted (double value, double weight) |
|
virtual void | collectWeighted (SimTime value, double weight) |
|
virtual void | collectWeighted (double value, SimTime weight) |
|
virtual void | collectWeighted (SimTime value, SimTime weight) |
|
|
virtual bool | binsAlreadySetUp () const override |
|
virtual int64_t | getNumUnderflows () const override |
|
virtual int64_t | getNumOverflows () const override |
|
virtual double | getUnderflowSumWeights () const override |
|
virtual double | getOverflowSumWeights () const override |
|
virtual int64_t | getNumNegInfs () const override |
|
virtual int64_t | getNumPosInfs () const override |
|
virtual double | getNegInfSumWeights () const override |
|
virtual double | getPosInfSumWeights () const override |
|
| cAbstractHistogram (const cAbstractHistogram &other)=default |
|
| cAbstractHistogram (const char *name=nullptr, bool weighted=false) |
|
virtual | ~cAbstractHistogram () |
|
cAbstractHistogram & | operator= (const cAbstractHistogram &res) |
|
virtual cAbstractHistogram * | dup () const override |
|
virtual void | setUpBins ()=0 |
|
virtual std::vector< double > | getBinEdges () const |
|
virtual std::vector< double > | getBinValues () const |
|
virtual int | getNumBins () const =0 |
|
virtual double | getBinEdge (int k) const =0 |
|
virtual double | getBinValue (int k) const =0 |
|
virtual double | getBinPDF (int k) const |
|
virtual Bin | getBinInfo (int k) const |
|
virtual double | getPDF (double x) const |
|
virtual double | getCDF (double x) const |
|
virtual double | draw () const override |
|
| cStdDev (const cStdDev &r) |
|
| cStdDev (const char *name=nullptr, bool weighted=false) |
|
virtual | ~cStdDev () |
|
cStdDev & | operator= (const cStdDev &res) |
|
virtual std::string | str () const override |
|
virtual bool | isWeighted () const override |
|
virtual int64_t | getCount () const override |
|
virtual double | getSum () const override |
|
virtual double | getSqrSum () const override |
|
virtual double | getMin () const override |
|
virtual double | getMax () const override |
|
virtual double | getMean () const override |
|
virtual double | getStddev () const override |
|
virtual double | getVariance () const override |
|
virtual double | getSumWeights () const override |
|
virtual double | getWeightedSum () const override |
|
virtual double | getSqrSumWeights () const override |
|
virtual double | getWeightedSqrSum () const override |
|
virtual void | collect (double value)=0 |
|
virtual void | collect (SimTime value) |
|
virtual void | collectWeighted (double value, double weight) |
|
virtual void | collectWeighted (SimTime value, double weight) |
|
virtual void | collectWeighted (double value, SimTime weight) |
|
virtual void | collectWeighted (SimTime value, SimTime weight) |
|
| cStatistic (const cStatistic &r) |
|
| cStatistic (const char *name=nullptr) |
|
virtual | ~cStatistic () |
|
cStatistic & | operator= (const cStatistic &res) |
|
virtual void | collect (SimTime value) |
|
virtual void | collectWeighted (SimTime value, double weight) |
|
virtual void | collectWeighted (double value, SimTime weight) |
|
virtual void | collectWeighted (SimTime value, SimTime weight) |
|
virtual void | record () |
|
virtual void | recordWithUnit (const char *unit) |
|
virtual void | recordAs (const char *name, const char *unit=nullptr) |
|
Public Member Functions inherited from cRandom |
| cRandom (cRNG *rng) |
|
| cRandom (const char *name=nullptr, cRNG *rng=nullptr) |
|
virtual | ~cRandom () |
|
virtual void | setRNG (cRNG *rng) |
|
cRNG * | getRNG () const |
|
| cOwnedObject () |
|
| cOwnedObject (const char *name, bool namepooling=true) |
|
| cOwnedObject (const cOwnedObject &obj) |
|
virtual | ~cOwnedObject () |
|
cOwnedObject & | operator= (const cOwnedObject &o) |
|
virtual cObject * | getOwner () const override |
|
virtual bool | isOwnedObject () const override |
|
| cNamedObject () |
|
| cNamedObject (const char *name, bool namepooling=true) |
|
| cNamedObject (const cNamedObject &obj) |
|
virtual | ~cNamedObject () |
|
cNamedObject & | operator= (const cNamedObject &o) |
|
virtual void | setName (const char *s) |
|
virtual const char * | getName () const override |
|
virtual void | setNamePooling (bool b) |
|
virtual bool | getNamePooling () |
|
| cObject () |
|
| cObject (const cObject &other)=default |
|
virtual | ~cObject () |
|
virtual const char * | getClassName () const |
|
bool | isName (const char *s) const |
|
virtual const char * | getFullName () const |
|
virtual std::string | getFullPath () const |
|
virtual std::string | getClassAndFullName () const |
|
virtual std::string | getClassAndFullPath () const |
|
const cObject * | getThisPtr () const |
|
virtual std::ostream & | printOn (std::ostream &os) const |
|
virtual bool | isSoftOwner () const |
|
virtual void | forEachChild (cVisitor *v) |
|
cObject * | findObject (const char *name, bool deep=true) |
|
virtual cClassDescriptor * | getDescriptor () const |
|
void | copyNotSupported () const |
|