ns3::NormalVariable Class Reference
[Random Variable Distributions]

Class NormalVariable defines a random variable with a normal (Gaussian) distribution.

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

#include <random-variable.h>

Inheritance diagram for ns3::NormalVariable:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

 NormalVariable ()
 NormalVariable (double m, double v)
 Construct a normal random variable with specified mean and variance.
 NormalVariable (double m, double v, double b)
 Construct a normal random variable with specified mean and variance.


Detailed Description

Class NormalVariable defines a random variable with a normal (Gaussian) distribution.

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

The density probability function is defined over the interval (-inf,+inf) as: $ \frac{1}{\sigma\sqrt{2\pi}} e^{-\frac{(x-\mu)^2}{s\sigma^2}}$ where $ mean = \mu $ and $ variance = \sigma^2 $


Constructor & Destructor Documentation

ns3::NormalVariable::NormalVariable (  ) 

Constructs an normal random variable with a mean value of 0 and variance of 1.

ns3::NormalVariable::NormalVariable ( double  m,
double  v 
)

Construct a normal random variable with specified mean and variance.

Parameters:
m Mean value
v Variance

ns3::NormalVariable::NormalVariable ( double  m,
double  v,
double  b 
)

Construct a normal random variable with specified mean and variance.

Parameters:
m Mean value
v Variance
b Bound. The NormalVariable is bounded symetrically about the mean [mean-bound,mean+bound]


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