Public Member Functions | |
SequentialVariableImpl (double f, double l, double i=1, uint32_t c=1) | |
Constructor for the SequentialVariableImpl RNG. More... | |
SequentialVariableImpl (double f, double l, const RandomVariable &i, uint32_t c=1) | |
Constructor for the SequentialVariableImpl RNG. More... | |
SequentialVariableImpl (const SequentialVariableImpl &c) | |
~SequentialVariableImpl () | |
virtual RandomVariableBase * | Copy (void) const |
virtual double | GetValue () |
![]() | |
RandomVariableBase () | |
RandomVariableBase (const RandomVariableBase &o) | |
virtual | ~RandomVariableBase () |
virtual uint32_t | GetInteger () |
RngStream * | GetStream (void) |
Private Attributes | |
uint32_t | m_consecutive |
double | m_current |
uint32_t | m_currentConsecutive |
RandomVariable | m_increment |
double | m_max |
double | m_min |
Definition at line 399 of file random-variable.cc.
ns3::SequentialVariableImpl::SequentialVariableImpl | ( | double | f, |
double | l, | ||
double | i = 1 , |
||
uint32_t | c = 1 |
||
) |
Constructor for the SequentialVariableImpl RNG.
The four parameters define the sequence. For example SequentialVariableImpl(0,5,1,2) creates a RNG that has the sequence 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 0, 0 ...
f | First value of the sequence. |
l | One more than the last value of the sequence. |
i | Increment between sequence values |
c | Number of times each member of the sequence is repeated |
Definition at line 445 of file random-variable.cc.
References NS_LOG_FUNCTION.
Referenced by Copy().
ns3::SequentialVariableImpl::SequentialVariableImpl | ( | double | f, |
double | l, | ||
const RandomVariable & | i, | ||
uint32_t | c = 1 |
||
) |
Constructor for the SequentialVariableImpl RNG.
Differs from the first only in that the increment parameter is a random variable
f | First value of the sequence. |
l | One more than the last value of the sequence. |
i | Reference to a RandomVariableBase for the sequence increment |
c | Number of times each member of the sequence is repeated |
Definition at line 456 of file random-variable.cc.
References NS_LOG_FUNCTION.
ns3::SequentialVariableImpl::SequentialVariableImpl | ( | const SequentialVariableImpl & | c | ) |
Definition at line 467 of file random-variable.cc.
References NS_LOG_FUNCTION.
ns3::SequentialVariableImpl::~SequentialVariableImpl | ( | ) |
Definition at line 479 of file random-variable.cc.
References NS_LOG_FUNCTION.
|
virtual |
Implements ns3::RandomVariableBase.
Definition at line 500 of file random-variable.cc.
References NS_LOG_FUNCTION, and SequentialVariableImpl().
|
virtual |
Implements ns3::RandomVariableBase.
Definition at line 484 of file random-variable.cc.
References ns3::RandomVariable::GetValue(), m_consecutive, m_current, m_currentConsecutive, m_increment, m_max, m_min, and NS_LOG_FUNCTION.
|
private |
Definition at line 440 of file random-variable.cc.
Referenced by GetValue().
|
private |
Definition at line 441 of file random-variable.cc.
Referenced by GetValue().
|
private |
Definition at line 442 of file random-variable.cc.
Referenced by GetValue().
|
private |
Definition at line 439 of file random-variable.cc.
Referenced by GetValue().
|
private |
Definition at line 438 of file random-variable.cc.
Referenced by GetValue().
|
private |
Definition at line 437 of file random-variable.cc.
Referenced by GetValue().