Gamma Distributed Random VariableGammaVariable defines a random variable with gamma distribution. More...
#include <random-variable.h>
Public Member Functions | |
GammaVariable (double alpha, double beta) | |
Static Public Member Functions | |
static double | GetSingleValue (double alpha, double beta) |
Gamma Distributed Random Variable
GammaVariable defines a random variable with gamma distribution.
This class supports the creation of objects that return random numbers from a fixed gamma distribution. It also supports the generation of single random numbers from various gamma distributions.
The probability density function is defined over the interval [0,+inf) as: where
and
Definition at line 659 of file random-variable.h.
ns3::GammaVariable::GammaVariable | ( | double | alpha, | |
double | beta | |||
) |
alpha | alpha parameter of the gamma distribution | |
beta | beta parameter of the gamma distribution |
Definition at line 1654 of file random-variable.cc.
double ns3::GammaVariable::GetSingleValue | ( | double | alpha, | |
double | beta | |||
) | [static] |
alpha | alpha parameter of the underlying gamma distribution | |
beta | beta parameter of the underlying gamma distribution |
Definition at line 1660 of file random-variable.cc.
Referenced by ns3::NakagamiPropagationLossModel::DoCalcRxPower().