ns3::EmpiricalVariable Class Reference
[Random Variable Distributions]

EmpiricalVariable distribution random var

Defines a random variable that has a specified, empirical distribution. The distribution is specified by a series of calls to the CDF member function, specifying a value and the probability that the function value is less than the specified value. When values are requested, a uniform random variable is used to select a probabililty, and the return value is interpreted linerarly between the two appropriate points in the CDF. The method is known as inverse transform sampling: (http://en.wikipedia.org/wiki/Inverse_transform_sampling). More...

#include <random-variable.h>

Inheritance diagram for ns3::EmpiricalVariable:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

 EmpiricalVariable ()
void CDF (double v, double c)
 Specifies a point in the empirical distribution.


Detailed Description

EmpiricalVariable distribution random var

Defines a random variable that has a specified, empirical distribution. The distribution is specified by a series of calls to the CDF member function, specifying a value and the probability that the function value is less than the specified value. When values are requested, a uniform random variable is used to select a probabililty, and the return value is interpreted linerarly between the two appropriate points in the CDF. The method is known as inverse transform sampling: (http://en.wikipedia.org/wiki/Inverse_transform_sampling).


Constructor & Destructor Documentation

ns3::EmpiricalVariable::EmpiricalVariable (  )  [explicit]

Constructor for the EmpiricalVariable random variables.


Member Function Documentation

void ns3::EmpiricalVariable::CDF ( double  v,
double  c 
)

Specifies a point in the empirical distribution.

Parameters:
v The function value for this point
c Probability that the function is less than or equal to v


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