A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ns3::GammaVariableImpl Class Reference
+ Inheritance 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 (const RandomVariableBase &o)
 
virtual uint32_t GetInteger ()
 
RngStreamGetStream (void)
 

Private Attributes

double m_alpha
 
double m_beta
 
NormalVariable m_normal
 

Detailed Description

Definition at line 1507 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 1542 of file random-variable.cc.

References NS_LOG_FUNCTION.

Member Function Documentation

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

Implements ns3::RandomVariableBase.

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

References NS_LOG_FUNCTION.

Referenced by GetValue().

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

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

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


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