A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ns3::TriangularVariable Class Reference

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

#include <random-variable.h>

+ Inheritance diagram for ns3::TriangularVariable:

Public Member Functions

 TriangularVariable ()
 
 TriangularVariable (double s, double l, double mean)
 
- Public Member Functions inherited from ns3::RandomVariable
 RandomVariable (const RandomVariable &o)
 
uint32_t GetInteger (void) const
 Returns a random integer integer from the underlying distribution. More...
 
double GetValue (void) const
 Returns a random double from the underlying distribution. More...
 
RandomVariableoperator= (const RandomVariable &o)
 

Additional Inherited Members

- Protected Member Functions inherited from ns3::RandomVariable
 RandomVariable (const RandomVariableBase &variable)
 
RandomVariableBasePeek (void) const
 

Detailed Description

Triangularly Distributed random var

This distribution is a triangular distribution. The probability 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 1823 of file random-variable.cc.

References NS_LOG_FUNCTION.

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

Creates a triangle distribution random number generator with the specified range

Parameters
sLow end of the range
lHigh end of the range
meanmean of the distribution

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

References NS_LOG_FUNCTION.


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