Inheritance diagram for ns3::ZipfVariableImpl:
Collaboration diagram for ns3::ZipfVariableImpl: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 () | |
| RandomVariableBase (const RandomVariableBase &o) | |
| virtual | ~RandomVariableBase () |
| virtual uint32_t | GetInteger () |
| RngStream * | GetStream (void) |
Private Attributes | |
| double | m_alpha |
| double | m_c |
| long | m_n |
Definition at line 1700 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 1740 of file random-variable.cc.
References m_c.
| ns3::ZipfVariableImpl::ZipfVariableImpl | ( | ) |
zipf variable with N=1 and alpha=0
Definition at line 1732 of file random-variable.cc.
Referenced by Copy().
Here is the caller graph for this function:
|
virtual |
Implements ns3::RandomVariableBase.
Definition at line 1727 of file random-variable.cc.
References m_alpha, m_n, and ZipfVariableImpl().
Here is the call graph for this function:
|
virtual |
Implements ns3::RandomVariableBase.
Definition at line 1754 of file random-variable.cc.
References ns3::RandomVariableBase::GetStream(), m_alpha, m_c, m_n, and ns3::RngStream::RandU01().
Here is the call graph for this function:
|
private |
Definition at line 1722 of file random-variable.cc.
Referenced by Copy(), and GetValue().
|
private |
Definition at line 1723 of file random-variable.cc.
Referenced by GetValue(), and ZipfVariableImpl().
|
private |
Definition at line 1721 of file random-variable.cc.
Referenced by Copy(), and GetValue().