28#include <ql/time/daycounters/actualactual.hpp>
29#include <ql/types.hpp>
43class VolatilityParameter;
44class ReversionParameter;
85 std::vector<std::string>
optionTerms = std::vector<std::string>(),
86 std::vector<std::string>
optionStrikes = std::vector<std::string>(),
95 void clear()
override;
98 void reset()
override;
180 QuantLib::Time
horizon()
const;
181 QuantLib::Real
scaling()
const;
Linear Gauss Markov Model Parameters.
CalibrationType & calibrationType()
std::string & qualifier()
Linear Gauss Markov Model Parameters.
std::vector< Time > & hTimes()
VolatilityType & volatilityType()
VolatilityParameter volatilityParameter() const
bool operator!=(const LgmData &rhs)
std::vector< std::string > & optionExpiries() const
std::vector< Time > & aTimes()
std::vector< std::string > optionTerms_
LgmData()
Default constructor.
ReversionParameter reversionParameter() const
QuantExt::AnalyticLgmSwaptionEngine::FloatSpreadMapping floatSpreadMapping_
std::vector< std::string > optionExpiries_
std::vector< Time > hTimes_
std::vector< Time > aTimes_
virtual void fromXML(XMLNode *node) override
std::vector< Real > & hValues()
virtual XMLNode * toXML(XMLDocument &doc) const override
ReversionType
Supported mean reversion types.
@ Hagan
Parametrize LGM H(t) as H(t) = int_0^t h(s) ds with constant or piecewise h(s)
std::vector< Real > & aValues()
VolatilityType
Supported volatility types.
std::vector< std::string > & optionTerms() const
std::vector< Real > aValues_
bool operator==(const LgmData &rhs)
QuantExt::AnalyticLgmSwaptionEngine::FloatSpreadMapping & floatSpreadMapping()
std::vector< Real > hValues_
ReversionType & reversionType()
LgmData(std::string qualifier, CalibrationType calibrationType, ReversionType revType, VolatilityType volType, bool calibrateH, ParamType hType, std::vector< Time > hTimes, std::vector< Real > hValues, bool calibrateA, ParamType aType, std::vector< Time > aTimes, std::vector< Real > aValues, Real shiftHorizon=0.0, Real scaling=1.0, std::vector< std::string > optionExpiries=std::vector< std::string >(), std::vector< std::string > optionTerms=std::vector< std::string >(), std::vector< std::string > optionStrikes=std::vector< std::string >(), const QuantExt::AnalyticLgmSwaptionEngine::FloatSpreadMapping inputFloatSpreadMapping=QuantExt::AnalyticLgmSwaptionEngine::proRata)
Detailed constructor.
std::vector< std::string > & optionStrikes() const
void reset() override
Reset member variables to defaults.
void clear() override
Clear list of calibration instruments.
std::vector< std::string > optionStrikes_
Small XML Document wrapper class.
Base class for all serializable classes.
Currency and instrument specific conventions/defaults.
Generic interest rate model data.
std::ostream & operator<<(std::ostream &out, EquityReturnType t)
CalibrationType
Supported calibration types.
ParamType
Supported calibration parameter type.
LgmData::ReversionType parseReversionType(const string &s)
Enum parsers.
QuantExt::AnalyticLgmSwaptionEngine::FloatSpreadMapping parseFloatSpreadMapping(const string &s)
LgmData::VolatilityType parseVolatilityType(const string &s)
Serializable Credit Default Swap.