Public Member Functions | |
TriangularVariableImpl () | |
Creates a triangle distribution random number generator in the range [0.0 . More... | |
TriangularVariableImpl (double s, double l, double mean) | |
Creates a triangle distribution random number generator with the specified range. More... | |
TriangularVariableImpl (const TriangularVariableImpl &c) | |
virtual RandomVariableBase * | Copy (void) const |
virtual double | GetValue () |
![]() | |
RandomVariableBase () | |
RandomVariableBase (const RandomVariableBase &o) | |
virtual | ~RandomVariableBase () |
virtual uint32_t | GetInteger () |
RngStream * | GetStream (void) |
Private Attributes | |
double | m_max |
double | m_min |
double | m_mode |
Definition at line 1760 of file random-variable.cc.
ns3::TriangularVariableImpl::TriangularVariableImpl | ( | ) |
Creates a triangle distribution random number generator in the range [0.0 .
. 1.0), with mean of 0.5
Definition at line 1793 of file random-variable.cc.
References NS_LOG_FUNCTION.
Referenced by Copy().
ns3::TriangularVariableImpl::TriangularVariableImpl | ( | 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 1801 of file random-variable.cc.
References NS_LOG_FUNCTION.
ns3::TriangularVariableImpl::TriangularVariableImpl | ( | const TriangularVariableImpl & | c | ) |
Definition at line 1809 of file random-variable.cc.
References NS_LOG_FUNCTION.
|
virtual |
Implements ns3::RandomVariableBase.
Definition at line 1833 of file random-variable.cc.
References NS_LOG_FUNCTION, and TriangularVariableImpl().
|
virtual |
Implements ns3::RandomVariableBase.
Definition at line 1818 of file random-variable.cc.
References ns3::RandomVariableBase::GetStream(), m_max, m_min, m_mode, NS_LOG_FUNCTION, and ns3::RngStream::RandU01().
|
private |
Definition at line 1788 of file random-variable.cc.
Referenced by GetValue().
|
private |
Definition at line 1787 of file random-variable.cc.
Referenced by GetValue().
|
private |
Definition at line 1789 of file random-variable.cc.
Referenced by GetValue().