Zeta Distributed Distributed Random VariableZetaVariable defines a discrete random variable with Zeta distribution. More...
#include <random-variable.h>
Public Member Functions | |
ZetaVariable (double alpha) | |
Returns a Zeta random variable with parameter alpha. More... | |
ZetaVariable () | |
Constructs a Zeta random variable with alpha=3.14. More... | |
![]() | |
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... | |
RandomVariable & | operator= (const RandomVariable &o) |
Additional Inherited Members | |
![]() | |
RandomVariable (const RandomVariableBase &variable) | |
RandomVariableBase * | Peek (void) const |
Zeta Distributed Distributed Random Variable
ZetaVariable defines a discrete random variable with Zeta distribution.
The Zeta distribution is closely related to Zipf distribution when N goes to infinity.
Zeta distribution has one parameter, alpha, (real). Probability Mass Function is
where
is the Riemann zeta function (
Definition at line 700 of file random-variable.h.
ns3::ZetaVariable::ZetaVariable | ( | double | alpha | ) |
Returns a Zeta random variable with parameter alpha.
alpha | the alpha parameter. Must be a strictly greater than 1, real. |
Definition at line 2027 of file random-variable.cc.
References NS_LOG_FUNCTION.
ns3::ZetaVariable::ZetaVariable | ( | ) |
Constructs a Zeta random variable with alpha=3.14.
Definition at line 2021 of file random-variable.cc.
References NS_LOG_FUNCTION.