30 void setNextSequence(SobolBrownianGeneratorBase& gen, std::vector<Real>& seq) {
32 std::vector<Real> output(gen.numberOfFactors());
33 for (
Size i = 0; i < gen.numberOfSteps(); ++i) {
35 std::copy(output.begin(), output.end(), seq.begin() + i * gen.numberOfFactors());
45 : seq_(
sample_type::value_type(factors * steps), 1.0),
46 gen_(factors, steps, ordering, seed, directionIntegers) {}
70 unsigned long scrambleSeed)
71 : seq_(
sample_type::value_type(factors * steps), 1.0),
72 gen_(factors, steps, ordering, seed, directionIntegers, scrambleSeed) {}
Burley2020SobolBrownianBridgeRsg(Size factors, Size steps, SobolBrownianGenerator::Ordering ordering=SobolBrownianGenerator::Diagonal, unsigned long seed=42, SobolRsg::DirectionIntegers directionIntegers=SobolRsg::JoeKuoD7, unsigned long scrambleSeed=43)
const sample_type & lastSequence() const
Burley2020SobolBrownianGenerator gen_
const sample_type & nextSequence() const
const sample_type & nextSequence() const
SobolBrownianBridgeRsg(Size factors, Size steps, SobolBrownianGenerator::Ordering ordering=SobolBrownianGenerator::Diagonal, unsigned long seed=0, SobolRsg::DirectionIntegers directionIntegers=SobolRsg::JoeKuoD7)
SobolBrownianGenerator gen_
const sample_type & lastSequence() const
Size numberOfFactors() const override
Size numberOfSteps() const override
std::size_t Size
size of a container
interface class to map the functionality of SobolBrownianGenerator to the "conventional" sequence gen...