A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ns3::ZetaVariableImpl Class Reference
+ Inheritance diagram for ns3::ZetaVariableImpl:
+ Collaboration diagram for ns3::ZetaVariableImpl:

Public Member Functions

 ZetaVariableImpl (double alpha)
 ZetaVariableImpl ()
virtual RandomVariableBaseCopy (void) const
virtual double GetValue ()
- Public Member Functions inherited from ns3::RandomVariableBase
 RandomVariableBase ()
 RandomVariableBase (const RandomVariableBase &o)
virtual ~RandomVariableBase ()
virtual uint32_t GetInteger ()
RngStreamGetStream (void)

Private Attributes

double m_alpha
double m_b

Detailed Description

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

Constructor & Destructor Documentation

ns3::ZetaVariableImpl::ZetaVariableImpl ( double  alpha)
Parameters
alphathe alpha parameter

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

ns3::ZetaVariableImpl::ZetaVariableImpl ( )

zipf variable with alpha=1.1

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

Referenced by Copy().

+ Here is the caller graph for this function:

Member Function Documentation

RandomVariableBase * ns3::ZetaVariableImpl::Copy ( void  ) const
virtual

Implements ns3::RandomVariableBase.

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

References m_alpha, and ZetaVariableImpl().

+ Here is the call graph for this function:

double ns3::ZetaVariableImpl::GetValue ( void  )
virtual
Returns
A random value from this distribution

Implements ns3::RandomVariableBase.

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

References ns3::RandomVariableBase::GetStream(), m_alpha, m_b, ns3::RngStream::RandU01(), and test().

+ Here is the call graph for this function:

Member Data Documentation

double ns3::ZetaVariableImpl::m_alpha
private

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

Referenced by Copy(), and GetValue().

double ns3::ZetaVariableImpl::m_b
private

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

Referenced by GetValue().


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