ns3::GammaVariableImpl Class Reference

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

List of all members.

Public Member Functions

 GammaVariableImpl (double alpha, double beta)
virtual double GetValue ()
virtual RandomVariableBaseCopy (void) const

Static Public Member Functions

static double GetSingleValue (double alpha, double beta)

Private Attributes

double m_alpha
double m_beta
NormalVariable m_normal

Detailed Description

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


Constructor & Destructor Documentation

ns3::GammaVariableImpl::GammaVariableImpl ( double  alpha,
double  beta 
)
Parameters:
alpha alpha parameter of the gamma distribution
beta beta parameter of the gamma distribution

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

Referenced by Copy(), GetSingleValue(), and GetValue().


Member Function Documentation

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

Implements ns3::RandomVariableBase.

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

References GammaVariableImpl(), m_alpha, and m_beta.

double ns3::GammaVariableImpl::GetSingleValue ( double  alpha,
double  beta 
) [static]
Parameters:
alpha alpha parameter of the underlying gamma distribution
beta beta parameter of the underlying gamma distribution
Returns:
A random number from the distribution specified by alpha and beta

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

References GammaVariableImpl(), ns3::RandomVariableBase::Initialize(), ns3::RngStream::InitializeStream(), ns3::RandomVariableBase::m_static_generator, and ns3::RngStream::RandU01().

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

Member Data Documentation

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

Referenced by Copy(), and GetValue().

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

Referenced by Copy(), and GetValue().

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

Referenced by GetValue().


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