Public Member Functions | |
NormalVariableImpl () | |
Constructs an normal random variable with a mean value of 0 and variance of 1. More... | |
NormalVariableImpl (double m, double v, double b=INFINITE_VALUE) | |
Construct a normal random variable with specified mean and variance. More... | |
NormalVariableImpl (const NormalVariableImpl &c) | |
virtual RandomVariableBase * | Copy (void) const |
double | GetBound (void) const |
double | GetMean (void) const |
virtual double | GetValue () |
double | GetVariance (void) const |
![]() | |
RandomVariableBase () | |
RandomVariableBase (const RandomVariableBase &o) | |
virtual | ~RandomVariableBase () |
virtual uint32_t | GetInteger () |
RngStream * | GetStream (void) |
Static Public Attributes | |
static const double | INFINITE_VALUE = 1e307 |
Private Attributes | |
double | m_bound |
double | m_mean |
double | m_next |
bool | m_nextValid |
double | m_variance |
Definition at line 960 of file random-variable.cc.
ns3::NormalVariableImpl::NormalVariableImpl | ( | ) |
Constructs an normal random variable with a mean value of 0 and variance of 1.
Definition at line 1001 of file random-variable.cc.
References NS_LOG_FUNCTION.
Referenced by Copy().
ns3::NormalVariableImpl::NormalVariableImpl | ( | double | m, |
double | v, | ||
double | b = INFINITE_VALUE |
||
) |
Construct a normal random variable with specified mean and variance.
m | Mean value |
v | Variance |
b | Bound. The NormalVariableImpl is bounded within +-bound of the mean. |
Definition at line 1010 of file random-variable.cc.
References NS_LOG_FUNCTION.
ns3::NormalVariableImpl::NormalVariableImpl | ( | const NormalVariableImpl & | c | ) |
Definition at line 1019 of file random-variable.cc.
References NS_LOG_FUNCTION.
|
virtual |
Implements ns3::RandomVariableBase.
Definition at line 1070 of file random-variable.cc.
References NormalVariableImpl(), and NS_LOG_FUNCTION.
double ns3::NormalVariableImpl::GetBound | ( | void | ) | const |
Definition at line 1091 of file random-variable.cc.
References m_bound, and NS_LOG_FUNCTION.
Referenced by ns3::operator<<().
double ns3::NormalVariableImpl::GetMean | ( | void | ) | const |
Definition at line 1077 of file random-variable.cc.
References m_mean, and NS_LOG_FUNCTION.
Referenced by ns3::operator<<().
|
virtual |
Implements ns3::RandomVariableBase.
Definition at line 1029 of file random-variable.cc.
References ns3::RandomVariableBase::GetStream(), m_bound, m_mean, m_next, m_nextValid, m_variance, NS_LOG_FUNCTION, ns3::RngStream::RandU01(), and visualizer.higcontainer::w.
double ns3::NormalVariableImpl::GetVariance | ( | void | ) | const |
Definition at line 1084 of file random-variable.cc.
References m_variance, and NS_LOG_FUNCTION.
Referenced by ns3::operator<<().
|
static |
Definition at line 964 of file random-variable.cc.
Referenced by ns3::operator<<().
|
private |
Definition at line 994 of file random-variable.cc.
Referenced by GetBound(), and GetValue().
|
private |
Definition at line 992 of file random-variable.cc.
Referenced by GetMean(), and GetValue().
|
private |
Definition at line 996 of file random-variable.cc.
Referenced by GetValue().
|
private |
Definition at line 995 of file random-variable.cc.
Referenced by GetValue().
|
private |
Definition at line 993 of file random-variable.cc.
Referenced by GetValue(), and GetVariance().