Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | List of all members
MultiPathVariateGeneratorSobol Class Reference

#include <qle/methods/multipathvariategenerator.hpp>

+ Inheritance diagram for MultiPathVariateGeneratorSobol:
+ Collaboration diagram for MultiPathVariateGeneratorSobol:

Public Member Functions

 MultiPathVariateGeneratorSobol (const Size dimension, const Size timeSteps, BigNatural seed=0, SobolRsg::DirectionIntegers directionIntegers=SobolRsg::JoeKuoD7)
 
void reset () override
 
- Public Member Functions inherited from MultiPathVariateGeneratorBase
 MultiPathVariateGeneratorBase (const Size dimension, const Size timeSteps)
 
virtual ~MultiPathVariateGeneratorBase ()
 
virtual Sample< std::vector< Array > > next () const
 
virtual void reset ()=0
 

Private Member Functions

Sample< std::vector< Real > > nextSequence () const override
 

Private Attributes

BigNatural seed_
 
SobolRsg::DirectionIntegers directionIntegers_
 
QuantLib::ext::shared_ptr< LowDiscrepancy::rsg_type > rsg_
 

Additional Inherited Members

virtual Sample< std::vector< Real > > nextSequence () const =0
 
- Protected Attributes inherited from MultiPathVariateGeneratorBase
Size dimension_
 
Size timeSteps_
 

Detailed Description

Definition at line 67 of file multipathvariategenerator.hpp.

Constructor & Destructor Documentation

◆ MultiPathVariateGeneratorSobol()

MultiPathVariateGeneratorSobol ( const Size  dimension,
const Size  timeSteps,
BigNatural  seed = 0,
SobolRsg::DirectionIntegers  directionIntegers = SobolRsg::JoeKuoD7 
)

Definition at line 75 of file multipathvariategenerator.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ reset()

void reset ( )
overridevirtual

Implements MultiPathVariateGeneratorBase.

Definition at line 82 of file multipathvariategenerator.cpp.

82 {
83 rsg_ = QuantLib::ext::make_shared<InverseCumulativeRsg<SobolRsg, InverseCumulativeNormal>>(
84 SobolRsg(dimension_ * timeSteps_, seed_, directionIntegers_), InverseCumulativeNormal());
85}
QuantLib::ext::shared_ptr< LowDiscrepancy::rsg_type > rsg_
+ Here is the caller graph for this function:

◆ nextSequence()

Sample< std::vector< Real > > nextSequence ( ) const
overrideprivatevirtual

Implements MultiPathVariateGeneratorBase.

Definition at line 87 of file multipathvariategenerator.cpp.

87{ return rsg_->nextSequence(); }

Member Data Documentation

◆ seed_

BigNatural seed_
private

Definition at line 76 of file multipathvariategenerator.hpp.

◆ directionIntegers_

SobolRsg::DirectionIntegers directionIntegers_
private

Definition at line 77 of file multipathvariategenerator.hpp.

◆ rsg_

QuantLib::ext::shared_ptr<LowDiscrepancy::rsg_type> rsg_
private

Definition at line 79 of file multipathvariategenerator.hpp.