Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
infjydata.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 ored/model/inflation/infjydata.hpp
20 \brief Jarrow Yildirim inflation model component data for the cross asset model
21 \ingroup models
22*/
23
24#pragma once
25
30#include <string>
31#include <vector>
32
33namespace ore {
34namespace data {
35
36/*! Jarrow Yildirim inflation model data.
37
38 Model data specifying the Jarrow Yildirim inflation model described in <em>Modern Derivatives Pricing and Credit
39 Exposure Analysis</em>, Chapter 13.
40
41 \ingroup models
42*/
43
45
46public:
47 //! Default constructor
48 InfJyData();
49
50 //! Detailed constructor
51 /* Note: If linkRealRateToNominalRateParams == true, the realRateVolatility and realRateReversion should be set to
52 the nominal rate parameters and the calibrate flag in these new parameters should be set to false. */
53 InfJyData(CalibrationType calibrationType, const std::vector<CalibrationBasket>& calibrationBaskets,
54 const std::string& currency, const std::string& index, const ReversionParameter& realRateReversion,
58 const bool ignoreDuplicateCalibrationExpiryTimes = false, const bool linkRealToNominalRateParams = false,
59 const Real linkedRealRateVolatilityScaling = 1.0);
60
61 //! \name Inspectors
62 //@{
70 //@}
71
72 //! \name Setters
73 //@{
76 //@}
77
78 //! \name Serialisation
79 //@{
80 void fromXML(XMLNode* node) override;
81 XMLNode* toXML(XMLDocument& doc) const override;
82 //@}
83
84private:
92};
93
94}
95}
class for holding details of the calibration instruments for a model
class for holding calibration configuration details
LgmReversionTransformation reversionTransformation_
Definition: infjydata.hpp:88
const VolatilityParameter & indexVolatility() const
Definition: infjydata.cpp:53
bool linkRealRateParamsToNominalRateParams() const
Definition: infjydata.cpp:69
VolatilityParameter indexVolatility_
Definition: infjydata.hpp:87
void setRealRateReversion(ReversionParameter p)
Definition: infjydata.cpp:65
const VolatilityParameter & realRateVolatility() const
Definition: infjydata.cpp:49
const CalibrationConfiguration & calibrationConfiguration() const
Definition: infjydata.cpp:61
void fromXML(XMLNode *node) override
Definition: infjydata.cpp:73
XMLNode * toXML(XMLDocument &doc) const override
Definition: infjydata.cpp:107
InfJyData()
Default constructor.
Definition: infjydata.cpp:30
CalibrationConfiguration calibrationConfiguration_
Definition: infjydata.hpp:89
VolatilityParameter realRateVolatility_
Definition: infjydata.hpp:86
Real linkedRealRateVolatilityScaling_
Definition: infjydata.hpp:91
Real linkedRealRateVolatilityScaling() const
Definition: infjydata.cpp:71
const ReversionParameter & realRateReversion() const
Definition: infjydata.cpp:45
bool linkRealToNominalRateParams_
Definition: infjydata.hpp:90
const LgmReversionTransformation & reversionTransformation() const
Definition: infjydata.cpp:57
ReversionParameter realRateReversion_
Definition: infjydata.hpp:85
void setRealRateVolatility(VolatilityParameter p)
Definition: infjydata.cpp:67
const std::string & index() const
const std::string & currency() const
bool ignoreDuplicateCalibrationExpiryTimes() const
CalibrationType calibrationType() const
Definition: modeldata.cpp:34
const std::vector< CalibrationBasket > & calibrationBaskets() const
Definition: modeldata.cpp:38
Small XML Document wrapper class.
Definition: xmlutils.hpp:65
base class for holding inflation model data
@ data
Definition: log.hpp:77
class for holding model parameter data
CalibrationType
Supported calibration types.
Definition: irmodeldata.hpp:46
Serializable Credit Default Swap.
Definition: namespaces.docs:23