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

Public Member Functions

 ErlangVariableImpl (unsigned int k, double lambda)
 
virtual RandomVariableBaseCopy (void) const
 
virtual double GetValue ()
 
double GetValue (unsigned int k, double lambda)
 
- Public Member Functions inherited from ns3::RandomVariableBase
 RandomVariableBase ()
 
 RandomVariableBase (const RandomVariableBase &o)
 
virtual ~RandomVariableBase ()
 
virtual uint32_t GetInteger ()
 
RngStreamGetStream (void)
 

Private Attributes

unsigned int m_k
 
double m_lambda
 

Detailed Description

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

Constructor & Destructor Documentation

ns3::ErlangVariableImpl::ErlangVariableImpl ( unsigned int  k,
double  lambda 
)
Parameters
kk parameter of the Erlang distribution
lambdalambda parameter of the Erlang distribution

Definition at line 1688 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::ErlangVariableImpl::Copy ( void  ) const
virtual

Implements ns3::RandomVariableBase.

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

References ErlangVariableImpl(), m_k, m_lambda, and NS_LOG_FUNCTION.

+ Here is the call graph for this function:

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

Implements ns3::RandomVariableBase.

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

References m_k, m_lambda, and NS_LOG_FUNCTION.

double ns3::ErlangVariableImpl::GetValue ( unsigned int  k,
double  lambda 
)
Returns
A random value from the Erlang distribution with parameters k and lambda.
Todo:
do not create a new RNG stream every time the function is called !

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

References ns3::RandomVariable::GetValue(), and NS_LOG_FUNCTION.

+ Here is the call graph for this function:

Member Data Documentation

unsigned int ns3::ErlangVariableImpl::m_k
private

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

Referenced by Copy(), and GetValue().

double ns3::ErlangVariableImpl::m_lambda
private

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

Referenced by Copy(), and GetValue().


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