ns3::ErlangVariableImpl Class Reference

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

List of all members.

Public Member Functions

 ErlangVariableImpl (double k, double lambda)
virtual double GetValue ()
virtual RandomVariableBaseCopy (void) const

Static Public Member Functions

static double GetSingleValue (double k, double lambda)

Private Attributes

double m_k
double m_lambda
ExponentialVariable m_exponential

Detailed Description

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


Constructor & Destructor Documentation

ns3::ErlangVariableImpl::ErlangVariableImpl ( double  k,
double  lambda 
)
Parameters:
k k parameter of the Erlang distribution
lambda lambda parameter of the Erlang distribution

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

References NS_ASSERT.

Referenced by Copy().


Member Function Documentation

RandomVariableBase * ns3::ErlangVariableImpl::Copy ( void   )  const [virtual]

Implements ns3::RandomVariableBase.

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

References ErlangVariableImpl(), m_k, and m_lambda.

double ns3::ErlangVariableImpl::GetSingleValue ( double  k,
double  lambda 
) [static]
Parameters:
k k parameter of the underlying Erlang distribution
lambda lambda parameter of the underlying Erlang distribution
Returns:
A random number from the distribution specified by k and lambda

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

References ns3::RandomVariable::GetValue(), ns3::RandomVariableBase::Initialize(), ns3::RngStream::InitializeStream(), ns3::RandomVariableBase::m_static_generator, and NS_ASSERT.

double ns3::ErlangVariableImpl::GetValue (  )  [virtual]

Member Data Documentation

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

Referenced by GetValue().

double ns3::ErlangVariableImpl::m_k [private]

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

Referenced by Copy(), and GetValue().

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

Referenced by Copy().


The documentation for this class was generated from the following file:
Generated on Thu Dec 3 14:10:28 2009 for NS-3 by  doxygen 1.6.3