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

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

References ErlangVariableImpl(), m_k, and m_lambda.

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

References m_k, and m_lambda.

double ns3::ErlangVariableImpl::GetValue ( unsigned int  k,
double  lambda 
)
Returns
A random value from the Erlang distribution with parameters k and lambda.

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

References ns3::RandomVariable::GetValue().

+ Here is the call graph for this function:

Member Data Documentation

unsigned int ns3::ErlangVariableImpl::m_k
private

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

Referenced by Copy(), and GetValue().

double ns3::ErlangVariableImpl::m_lambda
private

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

Referenced by Copy(), and GetValue().


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