QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
FdmBlackScholesMesher Class Reference

#include <fdmblackscholesmesher.hpp>

+ Inheritance diagram for FdmBlackScholesMesher:
+ Collaboration diagram for FdmBlackScholesMesher:

Public Member Functions

 FdmBlackScholesMesher (Size size, const ext::shared_ptr< GeneralizedBlackScholesProcess > &process, Time maturity, Real strike, Real xMinConstraint=Null< Real >(), Real xMaxConstraint=Null< Real >(), Real eps=0.0001, Real scaleFactor=1.5, const std::pair< Real, Real > &cPoint={ Null< Real >(), Null< Real >() }, const DividendSchedule &dividendSchedule={}, const ext::shared_ptr< FdmQuantoHelper > &fdmQuantoHelper={}, Real spotAdjustment=0.0)
 
- Public Member Functions inherited from Fdm1dMesher
 Fdm1dMesher (Size size)
 
virtual ~Fdm1dMesher ()=default
 
Size size () const
 
Real dplus (Size index) const
 
Real dminus (Size index) const
 
Real location (Size index) const
 
const std::vector< Real > & locations () const
 

Static Public Member Functions

static ext::shared_ptr< GeneralizedBlackScholesProcessprocessHelper (const Handle< Quote > &s0, const Handle< YieldTermStructure > &rTS, const Handle< YieldTermStructure > &qTS, Volatility vol)
 

Additional Inherited Members

- Protected Attributes inherited from Fdm1dMesher
std::vector< Reallocations_
 
std::vector< Realdplus_
 
std::vector< Realdminus_
 

Detailed Description

Definition at line 39 of file fdmblackscholesmesher.hpp.

Constructor & Destructor Documentation

◆ FdmBlackScholesMesher()

FdmBlackScholesMesher ( Size  size,
const ext::shared_ptr< GeneralizedBlackScholesProcess > &  process,
Time  maturity,
Real  strike,
Real  xMinConstraint = Null<Real>(),
Real  xMaxConstraint = Null<Real>(),
Real  eps = 0.0001,
Real  scaleFactor = 1.5,
const std::pair< Real, Real > &  cPoint = Null<Real>(), Null<Real>() },
const DividendSchedule dividendSchedule = {},
const ext::shared_ptr< FdmQuantoHelper > &  fdmQuantoHelper = {},
Real  spotAdjustment = 0.0 
)

Definition at line 36 of file fdmblackscholesmesher.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ processHelper()

ext::shared_ptr< GeneralizedBlackScholesProcess > processHelper ( const Handle< Quote > &  s0,
const Handle< YieldTermStructure > &  rTS,
const Handle< YieldTermStructure > &  qTS,
Volatility  vol 
)
static

Definition at line 134 of file fdmblackscholesmesher.cpp.

+ Here is the caller graph for this function: