Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
infdkdata.hpp
Go to the documentation of this file.
1/*
2 Copyright (C) 2017 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/infdkdata.hpp
20 \brief Dodgson Kainth inflation model component data for the cross asset model
21 \ingroup models
22*/
23
24#pragma once
25
29#include <string>
30#include <vector>
31
32namespace ore {
33namespace data {
34
35/*! Dodgson Kainth inflation model data
36
37 Model data specifying the Dodgson Kainth inflation model described in <em>Modern Derivatives Pricing and Credit
38 Exposure Analysis</em>, Chapter 13.
39
40 \ingroup models
41*/
42
44
45public:
46 //! Default constructor
47 InfDkData();
48
49 //! Detailed constructor
51 const std::vector<CalibrationBasket>& calibrationBaskets,
52 const std::string& currency,
53 const std::string& index,
57 const bool ignoreDuplicateCalibrationExpiryTimes = false);
58
59 //! \name Inspectors
60 //@{
61 const ReversionParameter& reversion() const;
62 const VolatilityParameter& volatility() const;
64 //@}
65
66 //! \name Serialisation
67 //@{
68 void fromXML(XMLNode* node) override;
69 XMLNode* toXML(XMLDocument& doc) const override;
70 //@}
71
72private:
76
77 //! Support legacy XML interface for reading calibration instruments.
79};
80
81}
82}
class for holding details of the calibration instruments for a model
LgmReversionTransformation reversionTransformation_
Definition: infdkdata.hpp:75
ReversionParameter reversion_
Definition: infdkdata.hpp:73
InfDkData()
Default constructor.
Definition: infdkdata.cpp:28
const VolatilityParameter & volatility() const
Definition: infdkdata.cpp:47
VolatilityParameter volatility_
Definition: infdkdata.hpp:74
void fromXML(XMLNode *node) override
Definition: infdkdata.cpp:55
XMLNode * toXML(XMLDocument &doc) const override
Definition: infdkdata.cpp:81
const ReversionParameter & reversion() const
Definition: infdkdata.cpp:43
const LgmReversionTransformation & reversionTransformation() const
Definition: infdkdata.cpp:51
void populateCalibrationBaskets(XMLNode *node)
Support legacy XML interface for reading calibration instruments.
Definition: infdkdata.cpp:92
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