Public Member Functions | |
DeterministicVariableImpl (double *d, uint32_t c) | |
Constructor. More... | |
virtual RandomVariableBase * | Copy (void) const |
virtual double | GetValue () |
Public Member Functions inherited from ns3::RandomVariableBase | |
RandomVariableBase (const RandomVariableBase &o) | |
virtual uint32_t | GetInteger () |
RngStream * | GetStream (void) |
Private Attributes | |
uint32_t | count |
double * | data |
uint32_t | next |
Definition at line 1345 of file random-variable.cc.
|
explicit |
Constructor.
Creates a generator that returns successive elements of the d array on successive calls to ::Value(). 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 1374 of file random-variable.cc.
References NS_LOG_FUNCTION.
|
virtual |
Implements ns3::RandomVariableBase.
Definition at line 1387 of file random-variable.cc.
References NS_LOG_FUNCTION.