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
VarianceGammaEngine Class Reference

Variance Gamma Pricing engine for European vanilla options using integral approach. More...

#include <analyticvariancegammaengine.hpp>

+ Inheritance diagram for VarianceGammaEngine:
+ Collaboration diagram for VarianceGammaEngine:

Public Member Functions

 VarianceGammaEngine (ext::shared_ptr< VarianceGammaProcess >, Real absoluteError=1e-5)
 
void calculate () const override
 
- Public Member Functions inherited from GenericEngine< OneAssetOption::arguments, OneAssetOption::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

ext::shared_ptr< VarianceGammaProcessprocess_
 
Real absErr_
 

Additional Inherited Members

- Public Types inherited from Observer
typedef set_type::iterator iterator
 
- Protected Attributes inherited from GenericEngine< OneAssetOption::arguments, OneAssetOption::results >
OneAssetOption::arguments arguments_
 
OneAssetOption::results results_
 

Detailed Description

Variance Gamma Pricing engine for European vanilla options using integral approach.

Tests:
the correctness of the returned values is tested by checking it against known good results.

Definition at line 38 of file analyticvariancegammaengine.hpp.

Constructor & Destructor Documentation

◆ VarianceGammaEngine()

VarianceGammaEngine ( ext::shared_ptr< VarianceGammaProcess process,
Real  absoluteError = 1e-5 
)
explicit

Definition at line 82 of file analyticvariancegammaengine.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ calculate()

void calculate ( ) const
overridevirtual

Implements PricingEngine.

Definition at line 89 of file analyticvariancegammaengine.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ process_

ext::shared_ptr<VarianceGammaProcess> process_
private

Definition at line 45 of file analyticvariancegammaengine.hpp.

◆ absErr_

Real absErr_
private

Definition at line 46 of file analyticvariancegammaengine.hpp.