Factory class to create new instances of a particular random variable stream. More...
Public Member Functions | |
RngGenerator (bool anti=false) | |
Constructor. More... | |
Ptr< RandomVariableStream > | Create (void) const |
Create a new instance of a random variable stream. More... | |
Private Attributes | |
bool | m_anti |
Whether to create antithetic random variable streams. More... | |
Factory class to create new instances of a particular random variable stream.
RNG | The type of random variable generator to create. |
Definition at line 148 of file random-variable-stream-test-suite.cc.
|
inline |
Constructor.
[in] | anti | Create antithetic streams if true . |
Definition at line 155 of file random-variable-stream-test-suite.cc.
|
inlinevirtual |
Create a new instance of a random variable stream.
Implements ns3::test::RandomVariable::TestCaseBase::RngGeneratorBase.
Definition at line 161 of file random-variable-stream-test-suite.cc.
References ns3::test::RandomVariable::TestCaseBase::RngGenerator< RNG >::m_anti, and sample-rng-plot::rng.
|
private |
Whether to create antithetic random variable streams.
Definition at line 170 of file random-variable-stream-test-suite.cc.
Referenced by ns3::test::RandomVariable::TestCaseBase::RngGenerator< RNG >::Create().