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

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

References GammaVariableImpl(), m_alpha, and m_beta.

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

References m_alpha, and m_beta.

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

References ns3::RandomVariableBase::GetStream(), ns3::RandomVariable::GetValue(), GetValue(), m_normal, 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 1416 of file random-variable.cc.

Referenced by Copy(), and GetValue().

double ns3::GammaVariableImpl::m_beta
private

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

Referenced by Copy(), and GetValue().

NormalVariable ns3::GammaVariableImpl::m_normal
private

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

Referenced by GetValue().


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