A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ns3::IntEmpiricalVariable Class Reference

Integer-based empirical distributionDefines an empirical distribution where all values are integers. More...

#include <random-variable.h>

+ Inheritance diagram for ns3::IntEmpiricalVariable:
+ Collaboration diagram for ns3::IntEmpiricalVariable:

Public Member Functions

 IntEmpiricalVariable ()
 
- Public Member Functions inherited from ns3::EmpiricalVariable
 EmpiricalVariable ()
 Constructor for the EmpiricalVariable random variables. More...
 
void CDF (double v, double c)
 Specifies a point in the empirical distribution. More...
 
- Public Member Functions inherited from ns3::RandomVariable
 RandomVariable ()
 
 RandomVariable (const RandomVariable &o)
 
 ~RandomVariable ()
 
uint32_t GetInteger (void) const
 Returns a random integer integer from the underlying distribution. More...
 
double GetValue (void) const
 Returns a random double from the underlying distribution. More...
 
RandomVariableoperator= (const RandomVariable &o)
 

Additional Inherited Members

- Protected Member Functions inherited from ns3::EmpiricalVariable
 EmpiricalVariable (const RandomVariableBase &variable)
 
- Protected Member Functions inherited from ns3::RandomVariable
 RandomVariable (const RandomVariableBase &variable)
 
RandomVariableBasePeek (void) const
 

Detailed Description

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 492 of file random-variable.h.

Constructor & Destructor Documentation

ns3::IntEmpiricalVariable::IntEmpiricalVariable ( )

Definition at line 1346 of file random-variable.cc.

References NS_LOG_FUNCTION.


The documentation for this class was generated from the following files: