QuantLib: a free/open-source library for quantitative finance
Fully annotated sources - version 1.32
Loading...
Searching...
No Matches
batesprocess.hpp
1/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
3/*
4 Copyright (C) 2008 Klaus Spanderen
5
6 This file is part of QuantLib, a free-software/open-source library
7 for financial quantitative analysts and developers - http://quantlib.org/
8
9 QuantLib is free software: you can redistribute it and/or modify it
10 under the terms of the QuantLib license. You should have received a
11 copy of the license along with this program; if not, please email
12 <quantlib-dev@lists.sf.net>. The license is also available online at
13 <http://quantlib.org/license.shtml>.
14
15 This program is distributed in the hope that it will be useful, but WITHOUT
16 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
17 FOR A PARTICULAR PURPOSE. See the license for more details.
18*/
19
25#ifndef quantlib_bates_process_hpp
26#define quantlib_bates_process_hpp
27
28#include <ql/processes/hestonprocess.hpp>
29#include <ql/math/distributions/normaldistribution.hpp>
30
31
32namespace QuantLib {
33
35
49 class BatesProcess : public HestonProcess {
50 public:
53 const Handle<Quote>& s0,
59
60 Size factors() const override;
61 Array drift(Time t, const Array& x) const override;
62 Array evolve(Time t0, const Array& x0, Time dt, const Array& dw) const override;
63
64 Real lambda() const;
65 Real nu() const;
66 Real delta() const;
67 private:
70 };
71}
72
73
74#endif
1-D array used in linear algebra.
Definition: array.hpp:52
Square-root stochastic-volatility Bates process.
Array drift(Time t, const Array &x) const override
returns the drift part of the equation, i.e.,
Array evolve(Time t0, const Array &x0, Time dt, const Array &dw) const override
Size factors() const override
returns the number of independent factors of the process
const CumulativeNormalDistribution cumNormalDist_
Cumulative normal distribution function.
Shared handle to an observable.
Definition: handle.hpp:41
Square-root stochastic-volatility Heston process.
const Handle< YieldTermStructure > & dividendYield() const
const Handle< Quote > & s0() const
const Handle< YieldTermStructure > & riskFreeRate() const
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