Public Member Functions | |
DeterministicVariableImpl (double *d, uint32_t c) | |
Constructor. More... | |
virtual | ~DeterministicVariableImpl () |
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 | count |
double * | data |
uint32_t | next |
Definition at line 1356 of file random-variable.cc.
|
explicit |
Constructor.
Creates a generator that returns successive elements of the d array on successive calls to GetValue(). Note that the d pointer is copied for use by the generator (shallow-copy), not its contents, so the contents of the array d points to have to remain unchanged for the use of DeterministicVariableImpl to be meaningful.
d | Pointer to array of random values to return in sequence |
c | Number of values in the array |
Definition at line 1385 of file random-variable.cc.
References NS_LOG_FUNCTION.
Referenced by Copy().
|
virtual |
Definition at line 1393 of file random-variable.cc.
References NS_LOG_FUNCTION.
|
virtual |
Implements ns3::RandomVariableBase.
Definition at line 1408 of file random-variable.cc.
References DeterministicVariableImpl(), and NS_LOG_FUNCTION.
|
virtual |
Implements ns3::RandomVariableBase.
Definition at line 1398 of file random-variable.cc.
References count, data, next, and NS_LOG_FUNCTION.
|
private |
Definition at line 1380 of file random-variable.cc.
Referenced by GetValue().
|
private |
Definition at line 1382 of file random-variable.cc.
Referenced by GetValue().
|
private |
Definition at line 1381 of file random-variable.cc.
Referenced by GetValue().