Public Member Functions | |
UniformVariableImpl () | |
UniformVariableImpl (double s, double l) | |
UniformVariableImpl (const UniformVariableImpl &c) | |
virtual RandomVariableBase * | Copy (void) const |
double | GetMax (void) const |
double | GetMin (void) const |
virtual double | GetValue () |
virtual double | GetValue (double s, double l) |
![]() | |
RandomVariableBase () | |
RandomVariableBase (const RandomVariableBase &o) | |
virtual | ~RandomVariableBase () |
virtual uint32_t | GetInteger () |
RngStream * | GetStream (void) |
Private Attributes | |
double | m_max |
double | m_min |
Definition at line 168 of file random-variable.cc.
ns3::UniformVariableImpl::UniformVariableImpl | ( | ) |
Creates a uniform random number generator in the range [0.0 .. 1.0).
Definition at line 206 of file random-variable.cc.
References NS_LOG_FUNCTION.
Referenced by Copy().
ns3::UniformVariableImpl::UniformVariableImpl | ( | double | s, |
double | l | ||
) |
Creates a uniform random number generator with the specified range
s | Low end of the range |
l | High end of the range |
Definition at line 213 of file random-variable.cc.
References NS_LOG_FUNCTION.
ns3::UniformVariableImpl::UniformVariableImpl | ( | const UniformVariableImpl & | c | ) |
Definition at line 220 of file random-variable.cc.
References NS_LOG_FUNCTION.
|
virtual |
Implements ns3::RandomVariableBase.
Definition at line 256 of file random-variable.cc.
References NS_LOG_FUNCTION, and UniformVariableImpl().
double ns3::UniformVariableImpl::GetMax | ( | void | ) | const |
Definition at line 235 of file random-variable.cc.
References m_max, and NS_LOG_FUNCTION.
Referenced by ns3::operator<<().
double ns3::UniformVariableImpl::GetMin | ( | void | ) | const |
Definition at line 229 of file random-variable.cc.
References m_min, and NS_LOG_FUNCTION.
Referenced by ns3::operator<<().
|
virtual |
Implements ns3::RandomVariableBase.
Definition at line 242 of file random-variable.cc.
References ns3::RandomVariableBase::GetStream(), m_max, m_min, NS_LOG_FUNCTION, and ns3::RngStream::RandU01().
|
virtual |
Definition at line 249 of file random-variable.cc.
References ns3::RandomVariableBase::GetStream(), NS_LOG_FUNCTION, ns3::RngStream::RandU01(), and s.
|
private |
Definition at line 203 of file random-variable.cc.
Referenced by GetMax(), and GetValue().
|
private |
Definition at line 202 of file random-variable.cc.
Referenced by GetMin(), and GetValue().