ns3::WeibullVariable Class Reference
[Random Variable Distributions]

WeibullVariable distributed random var

This class supports the creation of objects that return random numbers from a fixed weibull distribution. It also supports the generation of single random numbers from various weibull distributions. More...

#include <random-variable.h>

Inheritance diagram for ns3::WeibullVariable:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

 WeibullVariable ()
 WeibullVariable (double m)
 WeibullVariable (double m, double s)
 WeibullVariable (double m, double s, double b)
 Constructs a weibull random variable with the specified mean.


Detailed Description

WeibullVariable distributed random var

This class supports the creation of objects that return random numbers from a fixed weibull distribution. It also supports the generation of single random numbers from various weibull distributions.

The probability density function is defined over the interval [0, +inf] as: $ \frac{k}{\lambda}\left(\frac{x}{\lambda}\right)^{k-1}e^{-\left(\frac{x}{\lambda}\right)^k} $ where $ k > 0$ is the shape parameter and $ \lambda > 0$ is the scale parameter. The specified mean is related to the scale and shape parameters by the following relation: $ mean = \lambda\Gamma\left(1+\frac{1}{k}\right) $ where $ \Gamma $ is the Gamma function.


Constructor & Destructor Documentation

ns3::WeibullVariable::WeibullVariable (  ) 

Constructs a weibull random variable with a mean value of 1.0 and a shape (alpha) parameter of 1

ns3::WeibullVariable::WeibullVariable ( double  m  ) 

Constructs a weibull random variable with the specified mean value and a shape (alpha) parameter of 1.5.

Parameters:
m mean value of the distribution

ns3::WeibullVariable::WeibullVariable ( double  m,
double  s 
)

Constructs a weibull random variable with the specified mean value and a shape (alpha).

Parameters:
m Mean value for the distribution.
s Shape (alpha) parameter for the distribution.

ns3::WeibullVariable::WeibullVariable ( double  m,
double  s,
double  b 
)

Constructs a weibull random variable with the specified mean.

value, shape (alpha), and upper bound. Since WeibullVariable distributions can theoretically return unbounded values, it is sometimes usefull to specify a fixed upper limit. Note however that when the upper limit is specified, the true mean of the distribution is slightly smaller than the mean value specified.

Parameters:
m Mean value for the distribution.
s Shape (alpha) parameter for the distribution.
b Upper limit on returned values


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

Generated on Fri Apr 9 15:01:09 2010 for NS-3 by  doxygen 1.5.8