Inheritance diagram for ns3::TriangularVariableImpl:
Collaboration diagram for ns3::TriangularVariableImpl: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 () |
Public Member Functions inherited from ns3::RandomVariableBase | |
| 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 1759 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 1792 of file random-variable.cc.
References NS_LOG_FUNCTION.
Referenced by Copy().
Here is the caller graph for this function:| 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 1800 of file random-variable.cc.
References NS_LOG_FUNCTION.
| ns3::TriangularVariableImpl::TriangularVariableImpl | ( | const TriangularVariableImpl & | c | ) |
Definition at line 1808 of file random-variable.cc.
References NS_LOG_FUNCTION.
|
virtual |
Implements ns3::RandomVariableBase.
Definition at line 1832 of file random-variable.cc.
References NS_LOG_FUNCTION, and TriangularVariableImpl().
Here is the call graph for this function:
|
virtual |
Implements ns3::RandomVariableBase.
Definition at line 1817 of file random-variable.cc.
References ns3::RandomVariableBase::GetStream(), m_max, m_min, m_mode, NS_LOG_FUNCTION, and ns3::RngStream::RandU01().
Here is the call graph for this function:
|
private |
Definition at line 1787 of file random-variable.cc.
Referenced by GetValue().
|
private |
Definition at line 1786 of file random-variable.cc.
Referenced by GetValue().
|
private |
Definition at line 1788 of file random-variable.cc.
Referenced by GetValue().