QuantLib: a free/open-source library for quantitative finance
Fully annotated sources - version 1.32
Loading...
Searching...
No Matches
batesengine.hpp
1/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
3/*
4 Copyright (C) 2005 Klaus Spanderen
5 Copyright (C) 2007 StatPro Italia srl
6
7 This file is part of QuantLib, a free-software/open-source library
8 for financial quantitative analysts and developers - http://quantlib.org/
9
10 QuantLib is free software: you can redistribute it and/or modify it
11 under the terms of the QuantLib license. You should have received a
12 copy of the license along with this program; if not, please email
13 <quantlib-dev@lists.sf.net>. The license is also available online at
14 <http://quantlib.org/license.shtml>.
15
16 This program is distributed in the hope that it will be useful, but WITHOUT
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
18 FOR A PARTICULAR PURPOSE. See the license for more details.
19*/
20
25#ifndef quantlib_bates_engine_hpp
26#define quantlib_bates_engine_hpp
27
28#include <ql/qldefines.hpp>
29#include <ql/models/equity/batesmodel.hpp>
30#include <ql/pricingengines/vanilla/analytichestonengine.hpp>
31
32namespace QuantLib {
33
35
107 public:
108 explicit BatesEngine(const ext::shared_ptr<BatesModel>& model,
109 Size integrationOrder = 144);
110 BatesEngine(const ext::shared_ptr<BatesModel>& model,
111 Real relTolerance, Size maxEvaluations);
112
113 protected:
114 std::complex<Real> addOnTerm(Real phi, Time t, Size j) const override;
115 };
116
117
119 public:
120 explicit BatesDetJumpEngine(const ext::shared_ptr<BatesDetJumpModel>& model,
121 Size integrationOrder = 144);
122 BatesDetJumpEngine(const ext::shared_ptr<BatesDetJumpModel>& model,
123 Real relTolerance, Size maxEvaluations);
124
125 protected:
126 std::complex<Real> addOnTerm(Real phi, Time t, Size j) const override;
127 };
128
129
131 public:
132 explicit BatesDoubleExpEngine(
133 const ext::shared_ptr<BatesDoubleExpModel>& model,
134 Size integrationOrder = 144);
136 const ext::shared_ptr<BatesDoubleExpModel>& model,
137 Real relTolerance, Size maxEvaluations);
138
139 protected:
140 std::complex<Real> addOnTerm(Real phi, Time t, Size j) const override;
141 };
142
143
145 public:
147 const ext::shared_ptr<BatesDoubleExpDetJumpModel>& model,
148 Size integrationOrder = 144);
150 const ext::shared_ptr<BatesDoubleExpDetJumpModel>& model,
151 Real relTolerance, Size maxEvaluations);
152
153 protected:
154 std::complex<Real> addOnTerm(Real phi, Time t, Size j) const override;
155 };
156
157}
158
159#endif
analytic Heston-model engine based on Fourier transform
std::complex< Real > addOnTerm(Real phi, Time t, Size j) const override
Definition: batesengine.cpp:62
std::complex< Real > addOnTerm(Real phi, Time t, Size j) const override
std::complex< Real > addOnTerm(Real phi, Time t, Size j) const override
Definition: batesengine.cpp:91
Bates model engines based on Fourier transform.
std::complex< Real > addOnTerm(Real phi, Time t, Size j) const override
Definition: batesengine.cpp:34
Real Time
continuous quantity with 1-year units
Definition: types.hpp:62
QL_REAL Real
real number
Definition: types.hpp:50
std::size_t Size
size of a container
Definition: types.hpp:58
Definition: any.hpp:35