QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.38
Loading...
Searching...
No Matches
yoyoptionlethelpers.hpp
Go to the documentation of this file.
1/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
3/*
4 Copyright (C) 2009 Chris Kenyon
5
6 This file is part of QuantLib, a free-software/open-source library
7 for financial quantitative analysts and developers - http://quantlib.org/
8
9 QuantLib is free software: you can redistribute it and/or modify it
10 under the terms of the QuantLib license. You should have received a
11 copy of the license along with this program; if not, please email
12 <quantlib-dev@lists.sf.net>. The license is also available online at
13 <http://quantlib.org/license.shtml>.
14
15 This program is distributed in the hope that it will be useful, but WITHOUT
16 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
17 FOR A PARTICULAR PURPOSE. See the license for more details.
18*/
19
20/*! \file yoyoptionlethelpers.hpp
21 \brief helpers for YoY inflation-volatility bootstrap
22*/
23
24#ifndef quantlib_yoy_optionlet_helpers_hpp
25#define quantlib_yoy_optionlet_helpers_hpp
26
31
32namespace QuantLib {
33
34 //! Year-on-year inflation-volatility bootstrap helper.
36 : public BootstrapHelper<YoYOptionletVolatilitySurface> {
37 public:
39 Real notional, // get the price level right, e.g., bps = 10,000
40 YoYInflationCapFloor::Type capFloorType,
41 Period& lag,
42 DayCounter yoyDayCounter,
43 Calendar paymentCalendar,
44 Natural fixingDays,
45 ext::shared_ptr<YoYInflationIndex> index,
46 CPI::InterpolationType interpolation,
47 Rate strike,
48 Size n,
49 ext::shared_ptr<YoYInflationCapFloorEngine> pricer);
50 /*! \deprecated Use the overload that passes an interpolation type instead.
51 Deprecated in version 1.36.
52 */
53 [[deprecated("Use the overload that passes an interpolation type instead")]]
55 Real notional,
56 YoYInflationCapFloor::Type capFloorType,
57 Period& lag,
58 DayCounter yoyDayCounter,
59 Calendar paymentCalendar,
60 Natural fixingDays,
61 ext::shared_ptr<YoYInflationIndex> index,
62 Rate strike,
63 Size n,
64 ext::shared_ptr<YoYInflationCapFloorEngine> pricer);
66 Real impliedQuote() const override;
67
68 protected:
69 Real notional_; // get the price level right (e.g. bps = 10,000)
73 ext::shared_ptr<YoYInflationIndex> index_;
75 Size n_; // how many payments
78 ext::shared_ptr<YoYInflationCapFloorEngine> pricer_;
79 // what you make
80 ext::shared_ptr<YoYInflationCapFloor> yoyCapFloor_;
81 };
82
83}
84
85#endif
86
base helper class used for bootstrapping
Base helper class for bootstrapping.
calendar class
Definition: calendar.hpp:61
day counter class
Definition: daycounter.hpp:44
Shared handle to an observable.
Definition: handle.hpp:41
Year-on-year inflation-volatility bootstrap helper.
ext::shared_ptr< YoYInflationIndex > index_
void setTermStructure(YoYOptionletVolatilitySurface *) override
ext::shared_ptr< YoYInflationCapFloorEngine > pricer_
ext::shared_ptr< YoYInflationCapFloor > yoyCapFloor_
Real impliedQuote() const override
YoYInflationCapFloor::Type capFloorType_
QL_REAL Real
real number
Definition: types.hpp:50
unsigned QL_INTEGER Natural
positive integer
Definition: types.hpp:43
Real Rate
interest rates
Definition: types.hpp:70
std::size_t Size
size of a container
Definition: types.hpp:58
inflation cap and floor class, just year-on-year variety for now
Inflation cap/floor engines.
Definition: any.hpp:37
InterpolationType
when you observe an index, how do you interpolate between fixings?
experimental yoy inflation volatility structures