Public Member Functions | |
ConstantVariableImpl () | |
ConstantVariableImpl (double c) | |
ConstantVariableImpl (const ConstantVariableImpl &c) | |
virtual RandomVariableBase * | Copy (void) const |
virtual uint32_t | GetInteger () |
virtual double | GetValue () |
void | NewConstant (double c) |
Specify a new constant RNG for this generator. More... | |
Public Member Functions inherited from ns3::RandomVariableBase | |
RandomVariableBase (const RandomVariableBase &o) | |
RngStream * | GetStream (void) |
Private Attributes | |
double | m_const |
Definition at line 294 of file random-variable.cc.
ns3::ConstantVariableImpl::ConstantVariableImpl | ( | ) |
Construct a ConstantVariableImpl RNG that returns zero every sample
Definition at line 329 of file random-variable.cc.
References NS_LOG_FUNCTION.
ns3::ConstantVariableImpl::ConstantVariableImpl | ( | double | c | ) |
Construct a ConstantVariableImpl RNG that returns the specified value every sample.
c | Unchanging value for this RNG. |
Definition at line 335 of file random-variable.cc.
References NS_LOG_FUNCTION.
|
virtual |
Implements ns3::RandomVariableBase.
Definition at line 354 of file random-variable.cc.
References NS_LOG_FUNCTION.
void ns3::ConstantVariableImpl::NewConstant | ( | double | c | ) |
Specify a new constant RNG for this generator.
c | New constant value for this RNG. |
Definition at line 348 of file random-variable.cc.
References NS_LOG_FUNCTION.