Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
yoyinflationoptionletvolstripper.hpp
Go to the documentation of this file.
1/*
2 Copyright (C) 2018 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/termstructures/yoyinflationoptionletvolstripper.hpp
20 \brief YoY Inflation Optionlet (caplet/floorlet) volatility strippers
21 \ingroup termstructures
22*/
23
24#ifndef quantext_yoyinflationoptionletvolstripper_hpp
25#define quantext_yoyinflationoptionletvolstripper_hpp
26
27#include <ql/indexes/inflationindex.hpp>
28#include <ql/termstructures/volatility/capfloor/capfloortermvolsurface.hpp>
29#include <ql/termstructures/volatility/inflation/yoyinflationoptionletvolatilitystructure.hpp>
30#include <ql/termstructures/volatility/volatilitytype.hpp>
31
32namespace QuantExt {
33using namespace QuantLib;
34
35/*! Helper class to strip yoy inflation optionlet (i.e. caplet/floorlet) volatilities
36 from the (cap/floor) term volatilities of a CapFloorTermVolSurface.
37\ingroup termstructures
38*/
40public:
41 YoYInflationOptionletVolStripper(const QuantLib::ext::shared_ptr<QuantLib::CapFloorTermVolSurface>& volSurface,
42 const QuantLib::ext::shared_ptr<YoYInflationIndex>& index,
43 const Handle<YieldTermStructure>& nominalTs,
44 VolatilityType type = ShiftedLognormal, Real displacement = 0.0);
45
46 const QuantLib::ext::shared_ptr<QuantExt::YoYOptionletVolatilitySurface> yoyInflationCapFloorVolSurface() const {
48 }
49
50 //! \name LazyObject interface
51 //@{
53 //@}
54private:
55 QuantLib::ext::shared_ptr<QuantExt::YoYOptionletVolatilitySurface> yoyOptionletVolSurface_;
56 QuantLib::ext::shared_ptr<QuantLib::CapFloorTermVolSurface> volSurface_;
57 QuantLib::ext::shared_ptr<YoYInflationIndex> yoyIndex_;
58 Handle<YieldTermStructure> nominalTs_;
59 VolatilityType type_;
61};
62} // namespace QuantExt
63
64#endif
QuantLib::ext::shared_ptr< QuantLib::CapFloorTermVolSurface > volSurface_
const QuantLib::ext::shared_ptr< QuantExt::YoYOptionletVolatilitySurface > yoyInflationCapFloorVolSurface() const
QuantLib::ext::shared_ptr< QuantExt::YoYOptionletVolatilitySurface > yoyOptionletVolSurface_
QuantLib::ext::shared_ptr< YoYInflationIndex > yoyIndex_