npstat::AbsRandomGenerator Struct Referenceabstract
Inheritance diagram for npstat::AbsRandomGenerator:
Detailed DescriptionInterface class for pseudo- and quasi-random number generators. While implementing this interface, multivariate generators should override "run" and "operator()" while 1-d generators should just override "operator()". In multivariate contexts, one should always use "run" rather than "operator()". Member Function Documentation◆ dim()
Dimensionality of the generated vectors (or points). It is expected that "dim()" will always be 1 for pseudo-random (as opposed to quasi-random) generators. Implemented in npstat::SobolGenerator, npstat::RegularSampler1D, npstat::RandomSequenceRepeater, npstat::MersenneTwister, npstat::HOSobolGenerator, npstat::EquidistantSampler1D, npstat::CPP11RandomGen< RandomEngine >, and npstat::WrappedRandomGen. ◆ maxPoints()
Maximum number of points which can be meaningfully produced by this generator (this is usually the generator period). If 0 is returned, it means that this number is larger than the maximum value of unsigned long long (which is typically 2^64 - 1). Override as necessary. Reimplemented in npstat::SobolGenerator, and npstat::EquidistantSampler1D. ◆ operator()()
Standard 1-d generator function. It should generate a run-time error for essentially multivariate generators whose dimensionality is larger than 1. Implemented in npstat::SobolGenerator, npstat::RegularSampler1D, npstat::RandomSequenceRepeater, npstat::MersenneTwister, npstat::EquidistantSampler1D, npstat::CPP11RandomGen< RandomEngine >, and npstat::WrappedRandomGen. ◆ run()
Generate a bunch of points. Multivariate generators must override this. Here, the effective dimensionality of the generator is bufLen/nPt. Reimplemented in npstat::SobolGenerator, npstat::HOSobolGenerator, and npstat::RandomSequenceRepeater. The documentation for this struct was generated from the following file: Generated by 1.9.1 |