a non-random variableDefines a random variable that has a specified, predetermined sequence. This would be useful when trying to force the RNG to return a known sequence, perhaps to compare NS-3 to some other simulator More...
#include <random-variable.h>


Public Member Functions | |
| DeterministicVariable (double *d, uint32_t c) | |
| Constructor. | |
a non-random variable
Defines a random variable that has a specified, predetermined sequence. This would be useful when trying to force the RNG to return a known sequence, perhaps to compare NS-3 to some other simulator
| ns3::DeterministicVariable::DeterministicVariable | ( | double * | d, | |
| uint32_t | c | |||
| ) | [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 DeterministicVariable to be meaningful.
| d | Pointer to array of random values to return in sequence | |
| c | Number of values in the array |
1.6.1