Public Member Functions | |
ExponentialVariableImpl () | |
ExponentialVariableImpl (double m) | |
Constructs an exponential random variable with a specified mean. | |
ExponentialVariableImpl (double m, double b) | |
Constructs an exponential random variable with specified mean and upper limit. | |
ExponentialVariableImpl (const ExponentialVariableImpl &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_bound |
double | m_mean |
Definition at line 476 of file random-variable.cc.
ns3::ExponentialVariableImpl::ExponentialVariableImpl | ( | ) |
Constructs an exponential random variable with a mean value of 1.0.
Definition at line 518 of file random-variable.cc.
Referenced by Copy().
|
explicit |
Constructs an exponential random variable with a specified mean.
m | Mean value for the random variable |
Definition at line 524 of file random-variable.cc.
ns3::ExponentialVariableImpl::ExponentialVariableImpl | ( | double | m, |
double | b | ||
) |
Constructs an exponential random variable with specified mean and upper limit.
Since exponential distributions can theoretically return unbounded values, it is sometimes useful to specify a fixed upper limit. Note however when the upper limit is specified, the true mean of the distribution is slightly smaller than the mean value specified: .
m | Mean value of the random variable |
b | Upper bound on returned values |
Definition at line 530 of file random-variable.cc.
ns3::ExponentialVariableImpl::ExponentialVariableImpl | ( | const ExponentialVariableImpl & | c | ) |
Definition at line 536 of file random-variable.cc.
|
virtual |
Implements ns3::RandomVariableBase.
Definition at line 557 of file random-variable.cc.
References ExponentialVariableImpl().
|
virtual |
Implements ns3::RandomVariableBase.
Definition at line 543 of file random-variable.cc.
References ns3::RandomVariableBase::GetStream(), m_bound, m_mean, and ns3::RngStream::RandU01().
|
private |
Definition at line 515 of file random-variable.cc.
Referenced by GetValue().
|
private |
Definition at line 514 of file random-variable.cc.
Referenced by GetValue().