Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
parsensitivityutilities.hpp
Go to the documentation of this file.
1/*
2 Copyright (C) 2024 AcadiaSoft Inc.
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 orea/engine/parsensitivityanalysis.hpp
20 \brief Perfrom sensitivity analysis for a given portfolio
21 \ingroup simulation
22*/
23
24#pragma once
25
28#include <ql/instrument.hpp>
29#include <ql/instruments/capfloor.hpp>
30#include <ql/instruments/inflationcapfloor.hpp>
31namespace ore {
32namespace analytics {
33
34//! Computes the implied quote
35Real impliedQuote(const QuantLib::ext::shared_ptr<QuantLib::Instrument>& i);
36
37//! true if key type and name are equal, do not care about the index though
39
40double impliedVolatility(const QuantLib::CapFloor& cap, double targetValue,
41 const QuantLib::Handle<QuantLib::YieldTermStructure>& d, double guess,
42 QuantLib::VolatilityType type, double displacement);
43
44double impliedVolatility(const QuantLib::YoYInflationCapFloor& cap, double targetValue,
45 const QuantLib::Handle<QuantLib::YieldTermStructure>& d, double guess,
46 QuantLib::VolatilityType type, double displacement,
47 const QuantLib::Handle<QuantLib::YoYInflationIndex>& index = {});
48
49double impliedVolatility(const RiskFactorKey& key, const ParSensitivityInstrumentBuilder::Instruments& instruments);
50
51
52
53} // namespace analytics
54} // namespace ore
Data types stored in the scenario class.
Definition: scenario.hpp:48
Volatility impliedVolatility(const QuantLib::CapFloor &cap, Real targetValue, const Handle< YieldTermStructure > &d, Volatility guess, VolatilityType type, Real displacement)
bool riskFactorKeysAreSimilar(const ore::analytics::RiskFactorKey &x, const ore::analytics::RiskFactorKey &y)
true if key type and name are equal, do not care about the index though
Real impliedQuote(const QuantLib::ext::shared_ptr< Instrument > &i)
Scenario class.