cRandom Class Reference¶
|
API
|
cRandom Class Referenceabstract
Inheritance diagram for cRandom:
Public Member Functions | |
Constructors, destructor, etc. | |
Parameters. | |
| virtual void | setRNG (cRNG *rng) |
| cRNG * | getRNG () const |
Random number generation | |
| virtual double | draw () const =0 |
| Public Member Functions inherited from cOwnedObject | |
| cOwnedObject () | |
| cOwnedObject (const char *name, bool namepooling=true) | |
| cOwnedObject (const cOwnedObject &obj) | |
| virtual | ~cOwnedObject () |
| cOwnedObject & | operator= (const cOwnedObject &o) |
| virtual void | parsimPack (cCommBuffer *buffer) const override |
| virtual void | parsimUnpack (cCommBuffer *buffer) override |
| virtual cObject * | getOwner () const override |
| virtual bool | isOwnedObject () const override |
| Public Member Functions inherited from cNamedObject | |
| 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 () |
| Public Member Functions inherited from cObject | |
| 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::string | str () const |
| virtual std::ostream & | printOn (std::ostream &os) const |
| virtual cObject * | dup () 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 |
Additional Inherited Members | |
| Static Public Member Functions inherited from cOwnedObject | |
| static long | getTotalObjectCount () |
| static long | getLiveObjectCount () |
| static void | resetObjectCounters () |
| static cSoftOwner * | getOwningContext () |
| Protected Member Functions inherited from cObject | |
| virtual void | take (cOwnedObject *obj) |
| virtual void | drop (cOwnedObject *obj) |
| void | dropAndDelete (cOwnedObject *obj) |
Description
Abstract interface for random variate generator classes.
Member Function Documentation
◆ setRNG()
|
inlinevirtual |
Sets the random number generator to use for random variate generation.
◆ getRNG()
|
inline |
Returns the RNG used for random variate generation.
◆ draw()
|
pure virtual |
Returns a random variate from the distribution represented by this object.
Implemented in cAbstractHistogram, cBernoulli, cBeta, cBinomial, cCauchy, cChiSquare, cErlang, cExponential, cGamma, cGeometric, cIntUniform, cIntUniformExcl, cNegBinomial, cNormal, cParetoShifted, cPoisson, cPSquare, cStdDev, cStudentT, cTriang, cTruncNormal, cUniform, and cWeibull.
Generated on for API by