QuantLib: a free/open-source library for quantitative finance
Fully annotated sources - version 1.32
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
MakeMCDigitalEngine< RNG, S > Class Template Reference

Monte Carlo digital engine factory. More...

#include <ql/pricingengines/vanilla/mcdigitalengine.hpp>

+ Collaboration diagram for MakeMCDigitalEngine< RNG, S >:

Public Member Functions

 MakeMCDigitalEngine (ext::shared_ptr< GeneralizedBlackScholesProcess >)
 
MakeMCDigitalEnginewithSteps (Size steps)
 
MakeMCDigitalEnginewithStepsPerYear (Size steps)
 
MakeMCDigitalEnginewithBrownianBridge (bool b=true)
 
MakeMCDigitalEnginewithSamples (Size samples)
 
MakeMCDigitalEnginewithAbsoluteTolerance (Real tolerance)
 
MakeMCDigitalEnginewithMaxSamples (Size samples)
 
MakeMCDigitalEnginewithSeed (BigNatural seed)
 
MakeMCDigitalEnginewithAntitheticVariate (bool b=true)
 
 operator ext::shared_ptr< PricingEngine > () const
 

Private Attributes

ext::shared_ptr< GeneralizedBlackScholesProcessprocess_
 
bool antithetic_ = false
 
Size steps_
 
Size stepsPerYear_
 
Size samples_
 
Size maxSamples_
 
Real tolerance_
 
bool brownianBridge_ = false
 
BigNatural seed_ = 0
 

Detailed Description

template<class RNG = PseudoRandom, class S = Statistics>
class QuantLib::MakeMCDigitalEngine< RNG, S >

Monte Carlo digital engine factory.

Definition at line 89 of file mcdigitalengine.hpp.

Constructor & Destructor Documentation

◆ MakeMCDigitalEngine()

MakeMCDigitalEngine ( ext::shared_ptr< GeneralizedBlackScholesProcess process)

Definition at line 190 of file mcdigitalengine.hpp.

Member Function Documentation

◆ withSteps()

MakeMCDigitalEngine< RNG, S > & withSteps ( Size  steps)

Definition at line 197 of file mcdigitalengine.hpp.

◆ withStepsPerYear()

MakeMCDigitalEngine< RNG, S > & withStepsPerYear ( Size  steps)

Definition at line 204 of file mcdigitalengine.hpp.

◆ withBrownianBridge()

MakeMCDigitalEngine< RNG, S > & withBrownianBridge ( bool  b = true)

Definition at line 246 of file mcdigitalengine.hpp.

◆ withSamples()

MakeMCDigitalEngine< RNG, S > & withSamples ( Size  samples)

Definition at line 211 of file mcdigitalengine.hpp.

◆ withAbsoluteTolerance()

MakeMCDigitalEngine< RNG, S > & withAbsoluteTolerance ( Real  tolerance)

Definition at line 220 of file mcdigitalengine.hpp.

◆ withMaxSamples()

MakeMCDigitalEngine< RNG, S > & withMaxSamples ( Size  samples)

Definition at line 232 of file mcdigitalengine.hpp.

◆ withSeed()

MakeMCDigitalEngine< RNG, S > & withSeed ( BigNatural  seed)

Definition at line 239 of file mcdigitalengine.hpp.

◆ withAntitheticVariate()

MakeMCDigitalEngine< RNG, S > & withAntitheticVariate ( bool  b = true)

Definition at line 253 of file mcdigitalengine.hpp.

◆ operator ext::shared_ptr< PricingEngine >()

operator ext::shared_ptr< PricingEngine >

Definition at line 260 of file mcdigitalengine.hpp.

Member Data Documentation

◆ process_

ext::shared_ptr<GeneralizedBlackScholesProcess> process_
private

Definition at line 104 of file mcdigitalengine.hpp.

◆ antithetic_

bool antithetic_ = false
private

Definition at line 105 of file mcdigitalengine.hpp.

◆ steps_

Size steps_
private

Definition at line 106 of file mcdigitalengine.hpp.

◆ stepsPerYear_

Size stepsPerYear_
private

Definition at line 106 of file mcdigitalengine.hpp.

◆ samples_

Size samples_
private

Definition at line 106 of file mcdigitalengine.hpp.

◆ maxSamples_

Size maxSamples_
private

Definition at line 106 of file mcdigitalengine.hpp.

◆ tolerance_

Real tolerance_
private

Definition at line 107 of file mcdigitalengine.hpp.

◆ brownianBridge_

bool brownianBridge_ = false
private

Definition at line 108 of file mcdigitalengine.hpp.

◆ seed_

BigNatural seed_ = 0
private

Definition at line 109 of file mcdigitalengine.hpp.