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

Public Member Functions

 GammaVariableImpl (double alpha, double beta)
 
virtual RandomVariableBaseCopy (void) const
 
virtual double GetValue ()
 
double GetValue (double alpha, double beta)
 
- 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_beta
 
NormalVariable m_normal
 

Detailed Description

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

Constructor & Destructor Documentation

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

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

Implements ns3::RandomVariableBase.

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

References GammaVariableImpl(), m_alpha, m_beta, and NS_LOG_FUNCTION.

+ Here is the call graph for this function:

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

Implements ns3::RandomVariableBase.

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

References m_alpha, m_beta, and NS_LOG_FUNCTION.

Referenced by GetValue().

+ Here is the caller graph for this function:

double ns3::GammaVariableImpl::GetValue ( double  alpha,
double  beta 
)
Returns
A random value from the gamma distribution with parameters alpha and beta

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

References ns3::RandomVariableBase::GetStream(), ns3::RandomVariable::GetValue(), GetValue(), m_normal, NS_LOG_FUNCTION, ns3::RngStream::RandU01(), and sample-rng-plot::x.

+ Here is the call graph for this function:

Member Data Documentation

double ns3::GammaVariableImpl::m_alpha
private

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

Referenced by Copy(), and GetValue().

double ns3::GammaVariableImpl::m_beta
private

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

Referenced by Copy(), and GetValue().

NormalVariable ns3::GammaVariableImpl::m_normal
private

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

Referenced by GetValue().


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