Public Member Functions | |
WeibullVariableImpl () | |
Constructs a weibull random variable with a mean value of 1.0 and a shape (alpha) parameter of 1. More... | |
WeibullVariableImpl (double m) | |
Constructs a weibull random variable with the specified mean value and a shape (alpha) parameter of 1.5. More... | |
WeibullVariableImpl (double m, double s) | |
Constructs a weibull random variable with the specified mean value and a shape (alpha). More... | |
WeibullVariableImpl (double m, double s, double b) | |
Constructs a weibull random variable with the specified mean. More... | |
WeibullVariableImpl (const WeibullVariableImpl &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_alpha |
double | m_bound |
double | m_mean |
Definition at line 824 of file random-variable.cc.
ns3::WeibullVariableImpl::WeibullVariableImpl | ( | ) |
Constructs a weibull random variable with a mean value of 1.0 and a shape (alpha) parameter of 1.
Definition at line 876 of file random-variable.cc.
References NS_LOG_FUNCTION.
Referenced by Copy().
ns3::WeibullVariableImpl::WeibullVariableImpl | ( | double | m | ) |
Constructs a weibull random variable with the specified mean value and a shape (alpha) parameter of 1.5.
m | mean value of the distribution |
Definition at line 882 of file random-variable.cc.
References NS_LOG_FUNCTION.
ns3::WeibullVariableImpl::WeibullVariableImpl | ( | double | m, |
double | s | ||
) |
Constructs a weibull random variable with the specified mean value and a shape (alpha).
m | Mean value for the distribution. |
s | Shape (alpha) parameter for the distribution. |
Definition at line 889 of file random-variable.cc.
References NS_LOG_FUNCTION.
ns3::WeibullVariableImpl::WeibullVariableImpl | ( | double | m, |
double | s, | ||
double | b | ||
) |
Constructs a weibull random variable with the specified mean.
value, shape (alpha), and upper bound. Since WeibullVariableImpl distributions can theoretically return unbounded values, it is sometimes usefull to specify a fixed upper limit. Note however that when the upper limit is specified, the true mean of the distribution is slightly smaller than the mean value specified.
m | Mean value for the distribution. |
s | Shape (alpha) parameter for the distribution. |
b | Upper limit on returned values |
Definition at line 896 of file random-variable.cc.
References NS_LOG_FUNCTION.
ns3::WeibullVariableImpl::WeibullVariableImpl | ( | const WeibullVariableImpl & | c | ) |
Definition at line 903 of file random-variable.cc.
References NS_LOG_FUNCTION.
|
virtual |
Implements ns3::RandomVariableBase.
Definition at line 928 of file random-variable.cc.
References NS_LOG_FUNCTION, and WeibullVariableImpl().
|
virtual |
Implements ns3::RandomVariableBase.
Definition at line 912 of file random-variable.cc.
References ns3::RandomVariableBase::GetStream(), m_alpha, m_bound, m_mean, NS_LOG_FUNCTION, and ns3::RngStream::RandU01().
|
private |
Definition at line 872 of file random-variable.cc.
Referenced by GetValue().
|
private |
Definition at line 873 of file random-variable.cc.
Referenced by GetValue().
|
private |
Definition at line 871 of file random-variable.cc.
Referenced by GetValue().