40 : dimensionality_(dimensionality), sequence_(
std::vector<
Real>(dimensionality), 1.0),
41 randomStart_(dimensionality, 0UL), randomShift_(dimensionality, 0.0) {
44 "dimensionality must be greater than 0");
46 if (randomStart || randomShift) {
HaltonRsg(Size dimensionality, unsigned long seed=0, bool randomStart=true, bool randomShift=false)
const sample_type & nextSequence() const
std::vector< Real > randomShift_
unsigned long sequenceCounter_
std::vector< unsigned long > randomStart_
static BigNatural get(Size absoluteIndex)
Get and store one after another.
Random sequence generator based on a pseudo-random number generator.
const sample_type & nextSequence() const
std::vector< BigNatural > nextInt32Sequence() const
#define QL_REQUIRE(condition, message)
throw an error if the given pre-condition is not verified
ext::function< Real(Real)> b
std::size_t Size
size of a container
Halton low-discrepancy sequence generator.
random-number generation policies