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
MakeMCBarrierEngine< RNG, S > Class Template Reference

Monte Carlo barrier-option engine factory. More...

#include <ql/pricingengines/barrier/mcbarrierengine.hpp>

+ Collaboration diagram for MakeMCBarrierEngine< RNG, S >:

Public Member Functions

 MakeMCBarrierEngine (ext::shared_ptr< GeneralizedBlackScholesProcess >)
 
MakeMCBarrierEnginewithSteps (Size steps)
 
MakeMCBarrierEnginewithStepsPerYear (Size steps)
 
MakeMCBarrierEnginewithBrownianBridge (bool b=true)
 
MakeMCBarrierEnginewithAntitheticVariate (bool b=true)
 
MakeMCBarrierEnginewithSamples (Size samples)
 
MakeMCBarrierEnginewithAbsoluteTolerance (Real tolerance)
 
MakeMCBarrierEnginewithMaxSamples (Size samples)
 
MakeMCBarrierEnginewithBias (bool b=true)
 
MakeMCBarrierEnginewithSeed (BigNatural seed)
 
 operator ext::shared_ptr< PricingEngine > () const
 

Private Attributes

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

Detailed Description

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

Monte Carlo barrier-option engine factory.

Definition at line 116 of file mcbarrierengine.hpp.

Constructor & Destructor Documentation

◆ MakeMCBarrierEngine()

MakeMCBarrierEngine ( ext::shared_ptr< GeneralizedBlackScholesProcess process)

Definition at line 274 of file mcbarrierengine.hpp.

Member Function Documentation

◆ withSteps()

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

Definition at line 281 of file mcbarrierengine.hpp.

◆ withStepsPerYear()

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

Definition at line 288 of file mcbarrierengine.hpp.

◆ withBrownianBridge()

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

Definition at line 295 of file mcbarrierengine.hpp.

◆ withAntitheticVariate()

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

Definition at line 302 of file mcbarrierengine.hpp.

◆ withSamples()

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

Definition at line 309 of file mcbarrierengine.hpp.

◆ withAbsoluteTolerance()

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

Definition at line 318 of file mcbarrierengine.hpp.

◆ withMaxSamples()

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

Definition at line 330 of file mcbarrierengine.hpp.

◆ withBias()

MakeMCBarrierEngine< RNG, S > & withBias ( bool  b = true)

Definition at line 337 of file mcbarrierengine.hpp.

◆ withSeed()

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

Definition at line 344 of file mcbarrierengine.hpp.

◆ operator ext::shared_ptr< PricingEngine >()

operator ext::shared_ptr< PricingEngine >

Definition at line 351 of file mcbarrierengine.hpp.

Member Data Documentation

◆ process_

ext::shared_ptr<GeneralizedBlackScholesProcess> process_
private

Definition at line 132 of file mcbarrierengine.hpp.

◆ brownianBridge_

bool brownianBridge_ = false
private

Definition at line 133 of file mcbarrierengine.hpp.

◆ antithetic_

bool antithetic_ = false
private

Definition at line 133 of file mcbarrierengine.hpp.

◆ biased_

bool biased_ = false
private

Definition at line 133 of file mcbarrierengine.hpp.

◆ steps_

Size steps_
private

Definition at line 134 of file mcbarrierengine.hpp.

◆ stepsPerYear_

Size stepsPerYear_
private

Definition at line 134 of file mcbarrierengine.hpp.

◆ samples_

Size samples_
private

Definition at line 134 of file mcbarrierengine.hpp.

◆ maxSamples_

Size maxSamples_
private

Definition at line 134 of file mcbarrierengine.hpp.

◆ tolerance_

Real tolerance_
private

Definition at line 135 of file mcbarrierengine.hpp.

◆ seed_

BigNatural seed_ = 0
private

Definition at line 136 of file mcbarrierengine.hpp.