QuantLib: a free/open-source library for quantitative finance
Fully annotated sources - version 1.32
Loading...
Searching...
No Matches
extendedblackscholesprocess.hpp
1/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
3/*
4 Copyright (C) 2008 Frank Hövermann
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
24#ifndef quantlib_extended_black_scholes_process_hpp
25#define quantlib_extended_black_scholes_process_hpp
26
27#include <ql/processes/blackscholesprocess.hpp>
28
29namespace QuantLib {
30
32
38 public:
41 const Handle<Quote>& x0,
42 const Handle<YieldTermStructure>& dividendTS,
43 const Handle<YieldTermStructure>& riskFreeTS,
44 const Handle<BlackVolTermStructure>& blackVolTS,
45 const ext::shared_ptr<discretization>& d =
46 ext::shared_ptr<discretization>(new EulerDiscretization),
47 Discretization evolDisc = Milstein);
48 Real drift(Time t, Real x) const override;
49 Real diffusion(Time t, Real x) const override;
50 Real evolve(Time t0, Real x0, Time dt, Real dw) const override;
51
52 private:
54 };
55
56}
57
58
59#endif
Euler discretization for stochastic processes.
experimental Black-Scholes-Merton stochastic process
Real diffusion(Time t, Real x) const override
returns the diffusion part of the equation, i.e.
Real evolve(Time t0, Real x0, Time dt, Real dw) const override
Real drift(Time t, Real x) const override
returns the drift part of the equation, i.e.
Generalized Black-Scholes stochastic process.
Real x0() const override
returns the initial value of the state variable
Shared handle to an observable.
Definition: handle.hpp:41
Real Time
continuous quantity with 1-year units
Definition: types.hpp:62
QL_REAL Real
real number
Definition: types.hpp:50
Definition: any.hpp:35