QuantLib: a free/open-source library for quantitative finance
Fully annotated sources - version 1.32
Loading...
Searching...
No Matches
fdblackscholesrebateengine.hpp
1/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
3/*
4 Copyright (C) 2008 Andreas Gaida
5 Copyright (C) 2008 Ralph Schreyer
6 Copyright (C) 2008, 2009 Klaus Spanderen
7
8 This file is part of QuantLib, a free-software/open-source library
9 for financial quantitative analysts and developers - http://quantlib.org/
10
11 QuantLib is free software: you can redistribute it and/or modify it
12 under the terms of the QuantLib license. You should have received a
13 copy of the license along with this program; if not, please email
14 <quantlib-dev@lists.sf.net>. The license is also available online at
15 <http://quantlib.org/license.shtml>.
16
17 This program is distributed in the hope that it will be useful, but WITHOUT
18 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
19 FOR A PARTICULAR PURPOSE. See the license for more details.
20*/
21
26#ifndef quantlib_fd_black_scholes_rebate_engine_hpp
27#define quantlib_fd_black_scholes_rebate_engine_hpp
28
29#include <ql/processes/blackscholesprocess.hpp>
30#include <ql/methods/finitedifferences/solvers/fdmbackwardsolver.hpp>
31#include <ql/instruments/dividendbarrieroption.hpp>
32
33namespace QuantLib {
34
35 QL_DEPRECATED_DISABLE_WARNING
36
38
40 QL_DEPRECATED_ENABLE_WARNING
41 public:
43 ext::shared_ptr<GeneralizedBlackScholesProcess> process,
44 Size tGrid = 100,
45 Size xGrid = 100,
46 Size dampingSteps = 0,
47 const FdmSchemeDesc& schemeDesc = FdmSchemeDesc::Douglas(),
48 bool localVol = false,
49 Real illegalLocalVolOverwrite = -Null<Real>());
50
52 ext::shared_ptr<GeneralizedBlackScholesProcess> process,
53 DividendSchedule dividends,
54 Size tGrid = 100,
55 Size xGrid = 100,
56 Size dampingSteps = 0,
57 const FdmSchemeDesc& schemeDesc = FdmSchemeDesc::Douglas(),
58 bool localVol = false,
59 Real illegalLocalVolOverwrite = -Null<Real>());
60
61 void calculate() const override;
62
63 private:
64 ext::shared_ptr<GeneralizedBlackScholesProcess> process_;
71 };
72
73}
74
75#endif
Finite-differences Black/Scholes barrier-option rebate helper engine.
ext::shared_ptr< GeneralizedBlackScholesProcess > process_
template class providing a null value for a given type.
Definition: null.hpp:76
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
std::vector< ext::shared_ptr< Dividend > > DividendSchedule
static FdmSchemeDesc Douglas()