QuantLib: a free/open-source library for quantitative finance
Fully annotated sources - version 1.32
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Private Attributes | List of all members
FdKlugeExtOUSpreadEngine Class Reference

#include <ql/experimental/finitedifferences/fdklugeextouspreadengine.hpp>

+ Inheritance diagram for FdKlugeExtOUSpreadEngine:
+ Collaboration diagram for FdKlugeExtOUSpreadEngine:

Public Types

typedef FdmExtOUJumpModelInnerValue::Shape GasShape
 
typedef FdmExtOUJumpModelInnerValue::Shape PowerShape
 
- Public Types inherited from Observer
typedef set_type::iterator iterator
 

Public Member Functions

 FdKlugeExtOUSpreadEngine (ext::shared_ptr< KlugeExtOUProcess > klugeOUProcess, ext::shared_ptr< YieldTermStructure > rTS, Size tGrid=25, Size xGrid=50, Size yGrid=10, Size uGrid=25, ext::shared_ptr< GasShape > gasShape=ext::shared_ptr< GasShape >(), ext::shared_ptr< PowerShape > powerShape=ext::shared_ptr< PowerShape >(), const FdmSchemeDesc &schemeDesc=FdmSchemeDesc::Hundsdorfer())
 
void calculate () const override
 
- Public Member Functions inherited from GenericEngine< VanillaOption::arguments, VanillaOption::results >
PricingEngine::argumentsgetArguments () const override
 
const PricingEngine::resultsgetResults () const override
 
void reset () override
 
void update () override
 
- Public Member Functions inherited from PricingEngine
 ~PricingEngine () override=default
 
virtual argumentsgetArguments () const =0
 
virtual const resultsgetResults () const =0
 
virtual void reset ()=0
 
virtual void calculate () const =0
 
- Public Member Functions inherited from Observable
 Observable ()
 
 Observable (const Observable &)
 
Observableoperator= (const Observable &)
 
 Observable (Observable &&)=delete
 
Observableoperator= (Observable &&)=delete
 
virtual ~Observable ()=default
 
void notifyObservers ()
 
- Public Member Functions inherited from Observer
 Observer ()=default
 
 Observer (const Observer &)
 
Observeroperator= (const Observer &)
 
virtual ~Observer ()
 
std::pair< iterator, boolregisterWith (const ext::shared_ptr< Observable > &)
 
void registerWithObservables (const ext::shared_ptr< Observer > &)
 
Size unregisterWith (const ext::shared_ptr< Observable > &)
 
void unregisterWithAll ()
 
virtual void update ()=0
 
virtual void deepUpdate ()
 

Private Attributes

const ext::shared_ptr< KlugeExtOUProcessklugeOUProcess_
 
const ext::shared_ptr< YieldTermStructurerTS_
 
const Size tGrid_
 
const Size xGrid_
 
const Size yGrid_
 
const Size uGrid_
 
const ext::shared_ptr< GasShapegasShape_
 
const ext::shared_ptr< PowerShapepowerShape_
 
const FdmSchemeDesc schemeDesc_
 

Additional Inherited Members

- Protected Attributes inherited from GenericEngine< VanillaOption::arguments, VanillaOption::results >
VanillaOption::arguments arguments_
 
VanillaOption::results results_
 

Detailed Description

Definition at line 41 of file fdklugeextouspreadengine.hpp.

Member Typedef Documentation

◆ GasShape

Definition at line 45 of file fdklugeextouspreadengine.hpp.

◆ PowerShape

Definition at line 46 of file fdklugeextouspreadengine.hpp.

Constructor & Destructor Documentation

◆ FdKlugeExtOUSpreadEngine()

FdKlugeExtOUSpreadEngine ( ext::shared_ptr< KlugeExtOUProcess klugeOUProcess,
ext::shared_ptr< YieldTermStructure rTS,
Size  tGrid = 25,
Size  xGrid = 50,
Size  yGrid = 10,
Size  uGrid = 25,
ext::shared_ptr< GasShape gasShape = ext::shared_ptr<GasShape>(),
ext::shared_ptr< PowerShape powerShape = ext::shared_ptr<PowerShape>(),
const FdmSchemeDesc schemeDesc = FdmSchemeDesc::Hundsdorfer() 
)

Definition at line 40 of file fdklugeextouspreadengine.cpp.

Member Function Documentation

◆ calculate()

void calculate ( ) const
overridevirtual

Implements PricingEngine.

Definition at line 54 of file fdklugeextouspreadengine.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ klugeOUProcess_

const ext::shared_ptr<KlugeExtOUProcess> klugeOUProcess_
private

Definition at line 62 of file fdklugeextouspreadengine.hpp.

◆ rTS_

const ext::shared_ptr<YieldTermStructure> rTS_
private

Definition at line 63 of file fdklugeextouspreadengine.hpp.

◆ tGrid_

const Size tGrid_
private

Definition at line 64 of file fdklugeextouspreadengine.hpp.

◆ xGrid_

const Size xGrid_
private

Definition at line 64 of file fdklugeextouspreadengine.hpp.

◆ yGrid_

const Size yGrid_
private

Definition at line 64 of file fdklugeextouspreadengine.hpp.

◆ uGrid_

const Size uGrid_
private

Definition at line 64 of file fdklugeextouspreadengine.hpp.

◆ gasShape_

const ext::shared_ptr<GasShape> gasShape_
private

Definition at line 65 of file fdklugeextouspreadengine.hpp.

◆ powerShape_

const ext::shared_ptr<PowerShape> powerShape_
private

Definition at line 66 of file fdklugeextouspreadengine.hpp.

◆ schemeDesc_

const FdmSchemeDesc schemeDesc_
private

Definition at line 67 of file fdklugeextouspreadengine.hpp.