Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
jyimpliedyoyinflationtermstructure.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/jyimpliedyoyinflationtermstructure.hpp
20 \brief year on year inflation term structure implied by a Jarrow Yildrim (JY) model
21 \ingroup models
22*/
23
24#ifndef quantext_jy_implied_yoy_inflation_term_structure_hpp
25#define quantext_jy_implied_yoy_inflation_term_structure_hpp
26
29
30namespace QuantExt {
31
32/*! Jarrow Yildrim (JY) implied year on year inflation term structure
33 \ingroup models
34*/
36public:
37 /*! Constructor taking the cross asset model, \p model, and the index of the relevant inflation component within
38 the model, \p index.
39 */
40 JyImpliedYoYInflationTermStructure(const QuantLib::ext::shared_ptr<CrossAssetModel>& model, QuantLib::Size index,
41 bool indexIsInterpolated);
42
43 //! \name YoYInflationModelTermStructure interface
44 //@{
45 std::map<QuantLib::Date, QuantLib::Real> yoyRates(const std::vector<QuantLib::Date>& dates,
46 const QuantLib::Period& obsLag = -1 * QuantLib::Days) const override;
47 //@}
48
49protected:
50 //! Year on year swaplet price for the period from \p S to \p T.
51 QuantLib::Real yoySwaplet(QuantLib::Time S, QuantLib::Time T) const;
52
53 //! \name YoYInflationModelTermStructure interface
54 //@{
55 void checkState() const override;
56 //@}
57};
58
59}
60
61#endif
QuantLib::Real yoySwaplet(QuantLib::Time S, QuantLib::Time T) const
Year on year swaplet price for the period from S to T.
std::map< QuantLib::Date, QuantLib::Real > yoyRates(const std::vector< QuantLib::Date > &dates, const QuantLib::Period &obsLag=-1 *QuantLib::Days) const override
cross asset model
year-on-year inflation term structure implied by a cross asset model