ns3::TriangularVariable Class Reference
[Random Variable Distributions]

Triangularly Distributed random varThis distribution is a triangular distribution. The probablility density is in the shape of a triangle. More...

#include <random-variable.h>

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

List of all members.

Public Member Functions

 TriangularVariable ()
 TriangularVariable (double s, double l, double mean)

Static Public Member Functions

static double GetSingleValue (double s, double l, double mean)

Detailed Description

Triangularly Distributed random var

This distribution is a triangular distribution. The probablility density is in the shape of a triangle.

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


Constructor & Destructor Documentation

ns3::TriangularVariable::TriangularVariable (  ) 

Creates a triangle distribution random number generator in the range [0.0 .. 1.0), with mean of 0.5

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

ns3::TriangularVariable::TriangularVariable ( double  s,
double  l,
double  mean 
)

Creates a triangle distribution random number generator with the specified range

Parameters:
s Low end of the range
l High end of the range
mean mean of the distribution

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


Member Function Documentation

double ns3::TriangularVariable::GetSingleValue ( double  s,
double  l,
double  mean 
) [static]
Parameters:
s Low end of the range
l High end of the range
mean mean of the distribution
Returns:
A triangularly distributed random number between s and l

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


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