MCBarrierEngine Class Template Reference
[Barrier option engines]

#include <ql/PricingEngines/Barrier/mcbarrierengine.hpp>

Inheritance diagram for MCBarrierEngine:

Inheritance graph
[legend]
List of all members.

Detailed Description

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

Pricing engine for barrier options using Monte Carlo.

Uses the Brownian-bridge correction for the barrier found in Going to Extremes: Correcting Simulation Bias in Exotic Option Valuation - D.R. Beaglehole, P.H. Dybvig and G. Zhou Financial Analysts Journal; Jan/Feb 1997; 53, 1. pg. 62-68 and Simulating path-dependent options: A new approach - M. El Babsiri and G. Noel Journal of Derivatives; Winter 1998; 6, 2; pg. 65-83


Public Member Functions

 MCBarrierEngine (Size maxTimeStepsPerYear, bool antitheticVariate=false, bool controlVariate=false, Size requiredSamples=Null< Size >(), Real requiredTolerance=Null< Real >(), Size maxSamples=Null< Size >(), bool isBiased=false, BigNatural seed=0)
void calculate () const

Protected Types

typedef McSimulation< SingleAsset<
RNG >, S >::path_generator_type 
path_generator_type
typedef McSimulation< SingleAsset<
RNG >, S >::path_pricer_type 
path_pricer_type
typedef McSimulation< SingleAsset<
RNG >, S >::stats_type 
stats_type

Protected Member Functions

boost::shared_ptr< path_generator_typepathGenerator () const
TimeGrid timeGrid () const
boost::shared_ptr< path_pricer_typepathPricer () const

Protected Attributes

Size maxTimeStepsPerYear_
Size requiredSamples_
Size maxSamples_
Real requiredTolerance_
bool isBiased_
BigNatural seed_


QuantLib.org
QuantLib
Hosted by
SourceForge.net Logo
Documentation generated by
doxygen