This distribution is a triangular distribution. The probablility density is in the shape of a triangle. More...
#include <random-variable.h>
Public Member Functions | |
TriangularVariable () | |
TriangularVariable (double s, double l, double mean) |
This distribution is a triangular distribution. The probablility density is in the shape of a triangle.
ns3::TriangularVariable::TriangularVariable | ( | ) |
Creates a triangle distribution random number generator in the range [0.0 .. 1.0), with mean of 0.5
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 |