Integer-based empirical distributionDefines an empirical distribution where all values are integers. Indentical to EmpiricalVariable, except that the inverse transform sampling interpolation described in the EmpiricalVariable documentation is modified to only return integers. More...
#include <random-variable.h>
Public Member Functions | |
IntEmpiricalVariable () | |
![]() | |
EmpiricalVariable () | |
void | CDF (double v, double c) |
Specifies a point in the empirical distribution. | |
![]() | |
RandomVariable () | |
RandomVariable (const RandomVariable &o) | |
~RandomVariable () | |
uint32_t | GetInteger (void) const |
Returns a random integer integer from the underlying distribution. | |
double | GetValue (void) const |
Returns a random double from the underlying distribution. | |
RandomVariable & | operator= (const RandomVariable &o) |
Additional Inherited Members | |
![]() | |
EmpiricalVariable (const RandomVariableBase &variable) |
Integer-based empirical distribution
Defines an empirical distribution where all values are integers. Indentical to EmpiricalVariable, except that the inverse transform sampling interpolation described in the EmpiricalVariable documentation is modified to only return integers.
Definition at line 490 of file random-variable.h.
ns3::IntEmpiricalVariable::IntEmpiricalVariable | ( | ) |
Definition at line 1232 of file random-variable.cc.