ns3::GammaVariable Class Reference
[Random Variable Distributions]

Gamma Distributed Random VariableGammaVariable defines a random variable with gamma distribution. More...

#include <random-variable.h>

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

List of all members.

Public Member Functions

 GammaVariable (double alpha, double beta)

Static Public Member Functions

static double GetSingleValue (double alpha, double beta)

Detailed Description

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: $ x^{\alpha-1} \frac{e^{-\frac{x}{\beta}}}{\beta^\alpha \Gamma(\alpha)}$ where $ mean = \alpha\beta $ and $ variance = \alpha \beta^2$

Definition at line 659 of file random-variable.h.


Constructor & Destructor Documentation

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

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


Member Function Documentation

double ns3::GammaVariable::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 1660 of file random-variable.cc.

Referenced by ns3::NakagamiPropagationLossModel::DoCalcRxPower().


The documentation for this class was generated from the following files:
Generated on Thu Dec 3 14:10:32 2009 for NS-3 by  doxygen 1.6.3