|
ns-3
|
A random variable that returns a constantClass ConstantVariable defines a random number generator that returns the same value every sample. More...
#include <random-variable.h>


Public Member Functions | |
| ConstantVariable () | |
| ConstantVariable (double c) | |
| void | SetConstant (double c) |
| Specify a new constant RNG for this generator. | |
Public Member Functions inherited from ns3::RandomVariable | |
| RandomVariable (const RandomVariable &o) | |
| RandomVariable & | operator= (const RandomVariable &o) |
| double | GetValue (void) const |
| Returns a random double from the underlying distribution. | |
| uint32_t | GetInteger (void) const |
| Returns a random integer integer from the underlying distribution. | |
Additional Inherited Members | |
Protected Member Functions inherited from ns3::RandomVariable | |
| RandomVariable (const RandomVariableBase &variable) | |
| RandomVariableBase * | Peek (void) const |
A random variable that returns a constant
Class ConstantVariable defines a random number generator that returns the same value every sample.
| ns3::ConstantVariable::ConstantVariable | ( | ) |
Construct a ConstantVariable RNG that returns zero every sample
Referenced by SetConstant().
| ns3::ConstantVariable::ConstantVariable | ( | double | c | ) |
Construct a ConstantVariable RNG that returns the specified value every sample.
| c | Unchanging value for this RNG. |
| void ns3::ConstantVariable::SetConstant | ( | double | c | ) |
Specify a new constant RNG for this generator.
| c | New constant value for this RNG. |
References ConstantVariable().