Public Member Functions | |
WeibullVariableImpl () | |
WeibullVariableImpl (double m) | |
WeibullVariableImpl (double m, double s) | |
WeibullVariableImpl (double m, double s, double b) | |
Constructs a weibull random variable with the specified mean. | |
WeibullVariableImpl (const WeibullVariableImpl &c) | |
virtual double | GetValue () |
virtual RandomVariableBase * | Copy (void) const |
Static Public Member Functions | |
static double | GetSingleValue (double m, double s, double b=0) |
Private Attributes | |
double | m_mean |
double | m_alpha |
double | m_bound |
Definition at line 838 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 896 of file random-variable.cc.
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 897 of file random-variable.cc.
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 899 of file random-variable.cc.
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 901 of file random-variable.cc.
ns3::WeibullVariableImpl::WeibullVariableImpl | ( | const WeibullVariableImpl & | c | ) |
Definition at line 903 of file random-variable.cc.
RandomVariableBase * ns3::WeibullVariableImpl::Copy | ( | void | ) | const [virtual] |
Implements ns3::RandomVariableBase.
Definition at line 925 of file random-variable.cc.
References WeibullVariableImpl().
double ns3::WeibullVariableImpl::GetSingleValue | ( | double | m, | |
double | s, | |||
double | b = 0 | |||
) | [static] |
m | Mean value for the distribution. | |
s | Shape (alpha) parameter for the distribution. | |
b | Upper limit on returned values |
Definition at line 930 of file random-variable.cc.
References ns3::RandomVariableBase::Initialize(), ns3::RngStream::InitializeStream(), ns3::RandomVariableBase::m_static_generator, and ns3::RngStream::RandU01().
double ns3::WeibullVariableImpl::GetValue | ( | ) | [virtual] |
Implements ns3::RandomVariableBase.
Definition at line 907 of file random-variable.cc.
References ns3::RandomVariableBase::Initialize(), ns3::RandomVariableBase::initialized, ns3::RngStream::InitializeStream(), m_alpha, m_bound, ns3::RandomVariableBase::m_generator, m_mean, ns3::RngStream::RandU01(), ns3::RngStream::ResetNthSubstream(), and ns3::RandomVariableBase::runNumber.
double ns3::WeibullVariableImpl::m_alpha [private] |
Definition at line 892 of file random-variable.cc.
Referenced by GetValue().
double ns3::WeibullVariableImpl::m_bound [private] |
Definition at line 893 of file random-variable.cc.
Referenced by GetValue().
double ns3::WeibullVariableImpl::m_mean [private] |
Definition at line 891 of file random-variable.cc.
Referenced by GetValue().