Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
infjyparameterization.hpp
Go to the documentation of this file.
1/*
2 Copyright (C) 2020 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/models/infjyparameterization.hpp
20 \brief Jarrow Yildrim inflation parameterization
21*/
22
23#ifndef quantext_inf_jy_parameterization_hpp
24#define quantext_inf_jy_parameterization_hpp
25
26#include <ql/shared_ptr.hpp>
27#include <ql/indexes/inflationindex.hpp>
28#include <ql/termstructures/inflationtermstructure.hpp>
31
32namespace QuantExt {
33
35public:
37 QuantLib::ext::shared_ptr<FxBsParametrization> index,
38 QuantLib::ext::shared_ptr<QuantLib::ZeroInflationIndex> inflationIndex);
39
40 //! \name Parametrization interface
41 //@{
42 const QuantLib::Array& parameterTimes(const QuantLib::Size i) const override;
43 const QuantLib::ext::shared_ptr<QuantLib::Parameter> parameter(const QuantLib::Size i) const override;
44 void update() const override;
45 //@}
46
47 //! \name Inspectors
48 //@{
49 QuantLib::ext::shared_ptr<Lgm1fParametrization<QuantLib::ZeroInflationTermStructure>> realRate() const;
50 QuantLib::ext::shared_ptr<FxBsParametrization> index() const;
51 QuantLib::ext::shared_ptr<QuantLib::ZeroInflationIndex> inflationIndex() const;
52 //@}
53
54 Size numberOfParameters() const override { return 3; }
55
56protected:
57 //! \name Parametrization interface
58 //@{
59 QuantLib::Real direct(const QuantLib::Size i, const QuantLib::Real x) const override;
60 QuantLib::Real inverse(const QuantLib::Size i, const QuantLib::Real y) const override;
61 //@}
62
63private:
64 QuantLib::ext::shared_ptr<Lgm1fParametrization<QuantLib::ZeroInflationTermStructure>> realRate_;
65 QuantLib::ext::shared_ptr<FxBsParametrization> index_;
66 QuantLib::ext::shared_ptr<QuantLib::ZeroInflationIndex> inflationIndex_;
67
68 //! Check that the indexing.
69 void checkIndex(QuantLib::Size i) const;
70};
71
72} // namespace QuantExt
73
74#endif
const QuantLib::Array & parameterTimes(const QuantLib::Size i) const override
QuantLib::ext::shared_ptr< Lgm1fParametrization< QuantLib::ZeroInflationTermStructure > > realRate() const
QuantLib::Real inverse(const QuantLib::Size i, const QuantLib::Real y) const override
QuantLib::ext::shared_ptr< QuantLib::ZeroInflationIndex > inflationIndex() const
QuantLib::ext::shared_ptr< FxBsParametrization > index() const
QuantLib::ext::shared_ptr< FxBsParametrization > index_
void checkIndex(QuantLib::Size i) const
Check that the indexing.
const QuantLib::ext::shared_ptr< QuantLib::Parameter > parameter(const QuantLib::Size i) const override
QuantLib::Real direct(const QuantLib::Size i, const QuantLib::Real x) const override
QuantLib::ext::shared_ptr< Lgm1fParametrization< QuantLib::ZeroInflationTermStructure > > realRate_
QuantLib::ext::shared_ptr< QuantLib::ZeroInflationIndex > inflationIndex_
FX Black Scholes parametrization.
Interest Rate Linear Gaussian Markov 1 factor parametrization.