Public Member Functions

ns3::ZetaVariable Class Reference
[Random Variable Distributions]

Zeta Distributed Distributed Random VariableZetaVariable defines a discrete random variable with Zeta distribution. More...

#include <random-variable.h>

Inheritance diagram for ns3::ZetaVariable:
Inheritance graph
[legend]
Collaboration diagram for ns3::ZetaVariable:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ZetaVariable (double alpha)
 Returns a Zeta random variable with parameter alpha.
 ZetaVariable ()

Detailed Description

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, $ \alpha > 1 $ (real). Probability Mass Function is $ f(k; \alpha) = k^{-\alpha}/\zeta(\alpha) $ where $ \zeta(\alpha) $ is the Riemann zeta function ( $ \sum_{n=1}^\infty n^{-\alpha} ) $


Constructor & Destructor Documentation

ns3::ZetaVariable::ZetaVariable ( double  alpha  ) 

Returns a Zeta random variable with parameter alpha.

Parameters:
alpha the alpha parameter. Must be a strictly greater than 1, real.
ns3::ZetaVariable::ZetaVariable (  ) 

Constructs a Zeta random variable with alpha=3.14


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