Triangularly Distributed random varThis distribution is a triangular distribution. More...
#include <random-variable.h>
Inheritance diagram for ns3::TriangularVariable:
Collaboration diagram for ns3::TriangularVariable:Public Member Functions | |
| TriangularVariable () | |
| Creates a triangle distribution random number generator in the range [0.0 . More... | |
| TriangularVariable (double s, double l, double mean) | |
| Creates a triangle distribution random number generator with the specified range. More... | |
Public Member Functions inherited from ns3::RandomVariable | |
| RandomVariable () | |
| RandomVariable (const RandomVariable &o) | |
| ~RandomVariable () | |
| 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... | |
| RandomVariable & | operator= (const RandomVariable &o) |
Additional Inherited Members | |
Protected Member Functions inherited from ns3::RandomVariable | |
| RandomVariable (const RandomVariableBase &variable) | |
| RandomVariableBase * | Peek (void) const |
Triangularly Distributed random var
This distribution is a triangular distribution.
The probability density is in the shape of a triangle.
Definition at line 721 of file random-variable.h.
| 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 1838 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.
| s | Low end of the range |
| l | High end of the range |
| mean | mean of the distribution |
Definition at line 1843 of file random-variable.cc.
References NS_LOG_FUNCTION.