Inheritance diagram for ns3::SequentialVariableImpl:
Collaboration diagram for ns3::SequentialVariableImpl: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 () |
Public Member Functions inherited from ns3::RandomVariableBase | |
| 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 398 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 444 of file random-variable.cc.
References NS_LOG_FUNCTION.
Referenced by Copy().
Here is the caller graph for this function:| 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 455 of file random-variable.cc.
References NS_LOG_FUNCTION.
| ns3::SequentialVariableImpl::SequentialVariableImpl | ( | const SequentialVariableImpl & | c | ) |
Definition at line 466 of file random-variable.cc.
References NS_LOG_FUNCTION.
| ns3::SequentialVariableImpl::~SequentialVariableImpl | ( | ) |
Definition at line 478 of file random-variable.cc.
References NS_LOG_FUNCTION.
|
virtual |
Implements ns3::RandomVariableBase.
Definition at line 499 of file random-variable.cc.
References NS_LOG_FUNCTION, and SequentialVariableImpl().
Here is the call graph for this function:
|
virtual |
Implements ns3::RandomVariableBase.
Definition at line 483 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.
Here is the call graph for this function:
|
private |
Definition at line 439 of file random-variable.cc.
Referenced by GetValue().
|
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 438 of file random-variable.cc.
Referenced by GetValue().
|
private |
Definition at line 437 of file random-variable.cc.
Referenced by GetValue().
|
private |
Definition at line 436 of file random-variable.cc.
Referenced by GetValue().