|
ns-3
|
Log-normal Distributed random varLogNormalVariable defines a random variable with log-normal distribution. If one takes the natural logarithm of random variable following the log-normal distribution, the obtained values follow a normal distribution. This class supports the creation of objects that return random numbers from a fixed lognormal distribution. It also supports the generation of single random numbers from various lognormal distributions. More...
#include <random-variable.h>


Public Member Functions | |
| LogNormalVariable (double mu, double sigma) | |
Log-normal Distributed random var
LogNormalVariable defines a random variable with log-normal distribution. If one takes the natural logarithm of random variable following the log-normal distribution, the obtained values follow a normal distribution. This class supports the creation of objects that return random numbers from a fixed lognormal distribution. It also supports the generation of single random numbers from various lognormal distributions.
The probability density function is defined over the interval [0,+inf) as:
where
and 
The
and
parameters can be calculated if instead the mean and variance are known with the following equations:
, and,
| ns3::LogNormalVariable::LogNormalVariable | ( | double | mu, |
| double | sigma | ||
| ) |
| mu | mu parameter of the lognormal distribution |
| sigma | sigma parameter of the lognormal distribution |