QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | List of all members
SobolBrownianGenerator Class Reference

#include <sobolbrowniangenerator.hpp>

+ Inheritance diagram for SobolBrownianGenerator:
+ Collaboration diagram for SobolBrownianGenerator:

Public Member Functions

 SobolBrownianGenerator (Size factors, Size steps, Ordering ordering, unsigned long seed=0, SobolRsg::DirectionIntegers directionIntegers=SobolRsg::Jaeckel)
 
- Public Member Functions inherited from SobolBrownianGeneratorBase
 SobolBrownianGeneratorBase (Size factors, Size steps, Ordering ordering)
 
Real nextPath () override
 
Real nextStep (std::vector< Real > &) override
 
Size numberOfFactors () const override
 
Size numberOfSteps () const override
 
const std::vector< std::vector< Size > > & orderedIndices () const
 
std::vector< std::vector< Real > > transform (const std::vector< std::vector< Real > > &variates)
 
- Public Member Functions inherited from BrownianGenerator
virtual ~BrownianGenerator ()=default
 
virtual Real nextStep (std::vector< Real > &)=0
 
virtual Real nextPath ()=0
 
virtual Size numberOfFactors () const =0
 
virtual Size numberOfSteps () const =0
 

Private Member Functions

const SobolRsg::sample_typenextSequence () override
 

Private Attributes

InverseCumulativeRsg< SobolRsg, InverseCumulativeNormalgenerator_
 

Additional Inherited Members

- Public Types inherited from SobolBrownianGeneratorBase
enum  Ordering { Factors , Steps , Diagonal }
 
virtual const SobolRsg::sample_typenextSequence ()=0
 

Detailed Description

Definition at line 79 of file sobolbrowniangenerator.hpp.

Constructor & Destructor Documentation

◆ SobolBrownianGenerator()

SobolBrownianGenerator ( Size  factors,
Size  steps,
Ordering  ordering,
unsigned long  seed = 0,
SobolRsg::DirectionIntegers  directionIntegers = SobolRsg::Jaeckel 
)

Definition at line 201 of file sobolbrowniangenerator.cpp.

Member Function Documentation

◆ nextSequence()

const SobolRsg::sample_type & nextSequence ( )
overrideprivatevirtual

Implements SobolBrownianGeneratorBase.

Definition at line 209 of file sobolbrowniangenerator.cpp.

Member Data Documentation

◆ generator_

Definition at line 89 of file sobolbrowniangenerator.hpp.