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 ()
 A zipf variable with alpha=1.1. More...
 
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 1946 of file random-variable.cc.

Constructor & Destructor Documentation

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

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

References NS_LOG_FUNCTION.

ns3::ZetaVariableImpl::ZetaVariableImpl ( )

A zipf variable with alpha=1.1.

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

References NS_LOG_FUNCTION.

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 1971 of file random-variable.cc.

References m_alpha, NS_LOG_FUNCTION, 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 1998 of file random-variable.cc.

References ns3::RandomVariableBase::GetStream(), m_alpha, m_b, NS_LOG_FUNCTION, 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 1966 of file random-variable.cc.

Referenced by Copy(), and GetValue().

double ns3::ZetaVariableImpl::m_b
private

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

Referenced by GetValue().


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