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

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

#include <mceuropeanbasketengine.hpp>

+ Collaboration diagram for MakeMCEuropeanBasketEngine< RNG, S >:

Public Member Functions

 MakeMCEuropeanBasketEngine (ext::shared_ptr< StochasticProcessArray >)
 
MakeMCEuropeanBasketEnginewithSteps (Size steps)
 
MakeMCEuropeanBasketEnginewithStepsPerYear (Size steps)
 
MakeMCEuropeanBasketEnginewithBrownianBridge (bool b=true)
 
MakeMCEuropeanBasketEnginewithAntitheticVariate (bool b=true)
 
MakeMCEuropeanBasketEnginewithSamples (Size samples)
 
MakeMCEuropeanBasketEnginewithAbsoluteTolerance (Real tolerance)
 
MakeMCEuropeanBasketEnginewithMaxSamples (Size samples)
 
MakeMCEuropeanBasketEnginewithSeed (BigNatural seed)
 
 operator ext::shared_ptr< PricingEngine > () const
 

Private Attributes

ext::shared_ptr< StochasticProcessArrayprocess_
 
bool brownianBridge_ = false
 
bool antithetic_ = 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::MakeMCEuropeanBasketEngine< RNG, S >

Monte Carlo basket-option engine factory.

Definition at line 107 of file mceuropeanbasketengine.hpp.

Constructor & Destructor Documentation

◆ MakeMCEuropeanBasketEngine()

MakeMCEuropeanBasketEngine ( ext::shared_ptr< StochasticProcessArray process)

Definition at line 211 of file mceuropeanbasketengine.hpp.

Member Function Documentation

◆ withSteps()

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

Definition at line 218 of file mceuropeanbasketengine.hpp.

◆ withStepsPerYear()

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

Definition at line 225 of file mceuropeanbasketengine.hpp.

◆ withBrownianBridge()

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

Definition at line 232 of file mceuropeanbasketengine.hpp.

◆ withAntitheticVariate()

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

Definition at line 239 of file mceuropeanbasketengine.hpp.

◆ withSamples()

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

Definition at line 246 of file mceuropeanbasketengine.hpp.

◆ withAbsoluteTolerance()

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

Definition at line 255 of file mceuropeanbasketengine.hpp.

◆ withMaxSamples()

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

Definition at line 267 of file mceuropeanbasketengine.hpp.

◆ withSeed()

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

Definition at line 274 of file mceuropeanbasketengine.hpp.

◆ operator ext::shared_ptr< PricingEngine >()

operator ext::shared_ptr< PricingEngine >

Definition at line 281 of file mceuropeanbasketengine.hpp.

Member Data Documentation

◆ process_

ext::shared_ptr<StochasticProcessArray> process_
private

Definition at line 122 of file mceuropeanbasketengine.hpp.

◆ brownianBridge_

bool brownianBridge_ = false
private

Definition at line 123 of file mceuropeanbasketengine.hpp.

◆ antithetic_

bool antithetic_ = false
private

Definition at line 123 of file mceuropeanbasketengine.hpp.

◆ steps_

Size steps_
private

Definition at line 124 of file mceuropeanbasketengine.hpp.

◆ stepsPerYear_

Size stepsPerYear_
private

Definition at line 124 of file mceuropeanbasketengine.hpp.

◆ samples_

Size samples_
private

Definition at line 124 of file mceuropeanbasketengine.hpp.

◆ maxSamples_

Size maxSamples_
private

Definition at line 124 of file mceuropeanbasketengine.hpp.

◆ tolerance_

Real tolerance_
private

Definition at line 125 of file mceuropeanbasketengine.hpp.

◆ seed_

BigNatural seed_ = 0
private

Definition at line 126 of file mceuropeanbasketengine.hpp.