QuantLib: a free/open-source library for quantitative finance
Fully annotated sources - version 1.32
Loading...
Searching...
No Matches
variancegammaprocess.hpp
1/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
3/*
4Copyright (C) 2010 Adrian O' Neill
5
6This file is part of QuantLib, a free-software/open-source library
7for financial quantitative analysts and developers - http://quantlib.org/
8
9QuantLib is free software: you can redistribute it and/or modify it
10under the terms of the QuantLib license. You should have received a
11copy 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
15This program is distributed in the hope that it will be useful, but WITHOUT
16ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
17FOR A PARTICULAR PURPOSE. See the license for more details.
18*/
19
24#ifndef quantlib_variance_gamma_process_hpp
25#define quantlib_variance_gamma_process_hpp
26
27#include <ql/stochasticprocess.hpp>
28#include <ql/termstructures/yieldtermstructure.hpp>
29#include <ql/quote.hpp>
30
31namespace QuantLib {
32
34
51 public:
55 Real sigma,
56 Real nu,
57 Real theta);
58
59 Real x0() const override;
60 Real drift(Time t, Real x) const override;
61 Real diffusion(Time t, Real x) const override;
62
63 Real sigma() const { return sigma_; }
64 Real nu() const { return nu_; }
65 Real theta() const { return theta_; }
66
67 const Handle<Quote>& s0() const;
70
71 private:
75 };
76
77}
78
79
80#endif
81
Shared handle to an observable.
Definition: handle.hpp:41
1-dimensional stochastic process
const Handle< YieldTermStructure > & dividendYield() const
Real diffusion(Time t, Real x) const override
returns the diffusion part of the equation, i.e.
Real drift(Time t, Real x) const override
returns the drift part of the equation, i.e.
Handle< YieldTermStructure > dividendYield_
Real x0() const override
returns the initial value of the state variable
const Handle< Quote > & s0() const
const Handle< YieldTermStructure > & riskFreeRate() const
Handle< YieldTermStructure > riskFreeRate_
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