Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
cpibacheliercapfloorengine.hpp
Go to the documentation of this file.
1/*
2 Copyright (C) 2016, 2022 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/cpibacheliercapfloorengine.hpp
20 \brief CPI cap/floor engine using the Bachelier pricing formula and interpreting the volatility data as normal vols
21 \ingroup engines
22*/
23
24#ifndef quantext_cpi_bachelier_capfloor_engine_hpp
25#define quantext_cpi_bachelier_capfloor_engine_hpp
26
28
29namespace QuantExt {
30
32public:
33 CPIBachelierCapFloorEngine(const QuantLib::Handle<QuantLib::YieldTermStructure>& discountCurve,
34 const QuantLib::Handle<QuantLib::CPIVolatilitySurface>& surface,
35 const bool ttmFromLastAvailableFixing = false)
36 : CPICapFloorEngine(discountCurve, surface, ttmFromLastAvailableFixing){};
37 virtual ~CPIBachelierCapFloorEngine() = default;
38
39protected:
40 virtual double optionPriceImpl(QuantLib::Option::Type type, double forward, double strike, double stdDev,
41 double discount) const override;
42};
43
44} // namespace QuantExt
45
46#endif
virtual ~CPIBachelierCapFloorEngine()=default
CPIBachelierCapFloorEngine(const QuantLib::Handle< QuantLib::YieldTermStructure > &discountCurve, const QuantLib::Handle< QuantLib::CPIVolatilitySurface > &surface, const bool ttmFromLastAvailableFixing=false)
virtual double optionPriceImpl(QuantLib::Option::Type type, double forward, double strike, double stdDev, double discount) const override
Basse Class for Black / Bachelier CPI cap floor pricing engines.
CPI cap/floor engine using the Black pricing formula and interpreting the volatility data as lognorma...