Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
fddefaultableequityjumpdiffusionconvertiblebondengine.hpp
Go to the documentation of this file.
1/*
2 Copyright (C) 2021 Quaternion Risk Management Ltd.
3 All rights reserved.
4
5 This file is part of ORE, a free-software/open-source library
6 for transparent pricing and risk analysis - http://opensourcerisk.org
7
8 ORE is free software: you can redistribute it and/or modify it
9 under the terms of the Modified BSD License. You should have received a
10 copy of the license along with this program.
11 The license is also available online at <http://opensourcerisk.org>
12
13 This program is distributed on the basis that it will form a useful
14 contribution to risk analytics and model standardisation, but WITHOUT
15 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
16 FITNESS FOR A PARTICULAR PURPOSE. See the license for more details.
17*/
18
19/*! \file qle/pricingengines/fddefaultableequityjumpdiffusionconvertiblebondengine.hpp */
20
21#pragma once
22
25
27
28#include <ql/methods/finitedifferences/meshers/fdm1dmesher.hpp>
29
30namespace QuantExt {
31
33public:
34 /* - The discounting curve / discounting spread replaces the model rate r for discounting purposes.
35 - The credit curve - if given - adds an additional discounting and recovery term, related to the
36 bond credit component, while in this case the model credit component is linked to the equity only. */
38 const Handle<DefaultableEquityJumpDiffusionModel>& model,
39 const Handle<QuantLib::YieldTermStructure>& discountingCurve = Handle<QuantLib::YieldTermStructure>(),
40 const Handle<QuantLib::Quote>& discountingSpread = Handle<QuantLib::Quote>(),
41 const Handle<QuantLib::DefaultProbabilityTermStructure>& creditCurve =
42 Handle<QuantLib::DefaultProbabilityTermStructure>(),
43 const Handle<QuantLib::Quote>& recoveryRate = Handle<QuantLib::Quote>(),
44 const Handle<QuantExt::FxIndex>& fxConversion = Handle<QuantExt::FxIndex>(), const bool staticMesher = false,
45 const Size timeStepsPerYear = 24, const Size stateGridPoints = 100, const Real mesherEpsilon = 1E-4,
46 const Real mesherScaling = 1.5,
47 const std::vector<Real> conversionRatioDiscretisationGrid = {0.1, 0.5, 0.7, 0.9, 1.0, 1.1, 1.3, 1.5, 2.0, 5.0,
48 10.0},
49 const bool generateAdditionalResults = true);
50
51private:
52 void calculate() const override;
53
54 Handle<DefaultableEquityJumpDiffusionModel> model_;
55 Handle<QuantLib::YieldTermStructure> discountingCurve_;
56 Handle<QuantLib::Quote> discountingSpread_;
57 Handle<QuantLib::DefaultProbabilityTermStructure> creditCurve_;
58 Handle<QuantLib::Quote> recoveryRate_;
59 Handle<QuantExt::FxIndex> fxConversion_;
67
68 mutable QuantLib::ext::shared_ptr<Fdm1dMesher> mesher_;
69};
70
71} // namespace QuantExt
FX index class.