Public Member Functions | |
ZipfVariableImpl (long n, double alpha) | |
ZipfVariableImpl () | |
virtual RandomVariableBase * | Copy (void) const |
virtual double | GetValue () |
Public Member Functions inherited from ns3::RandomVariableBase | |
RandomVariableBase (const RandomVariableBase &o) | |
virtual uint32_t | GetInteger () |
RngStream * | GetStream (void) |
Private Attributes | |
double | m_alpha |
double | m_c |
long | m_n |
Definition at line 1837 of file random-variable.cc.
ns3::ZipfVariableImpl::ZipfVariableImpl | ( | long | n, |
double | alpha | ||
) |
n | the number of possible items |
alpha | the alpha parameter |
Definition at line 1879 of file random-variable.cc.
References NS_LOG_FUNCTION.
ns3::ZipfVariableImpl::ZipfVariableImpl | ( | ) |
zipf variable with N=1 and alpha=0
Definition at line 1870 of file random-variable.cc.
References NS_LOG_FUNCTION.
|
virtual |
Implements ns3::RandomVariableBase.
Definition at line 1894 of file random-variable.cc.
References NS_LOG_FUNCTION, and ns3::RngStream::RandU01().