26#include <ql/types.hpp>
29#include <boost/optional.hpp>
45 std::vector<QuantLib::Real>
values);
51 const std::vector<QuantLib::Time>&
times()
const;
52 const std::vector<QuantLib::Real>&
values()
const;
60 void mult(
const Real f);
74 virtual void check()
const;
97 std::vector<QuantLib::Time>
times, std::vector<QuantLib::Real>
values);
102 QuantLib::Real
value);
106 std::vector<QuantLib::Real>
values);
113 const boost::optional<LgmData::VolatilityType>&
volatilityType()
const;
140 std::vector<QuantLib::Time>
times, std::vector<QuantLib::Real>
values);
ReversionType
Supported mean reversion types.
VolatilityType
Supported volatility types.
const std::vector< QuantLib::Time > & times() const
virtual void check() const
Perform some checks on the parameters.
void setValues(std::vector< Real > values)
std::vector< QuantLib::Real > values_
void append(XMLDocument &doc, XMLNode *node) const
Method used by toXML in derived classes to add the members here to a node.
ModelParameter()
Default constructor.
void fromXML(XMLNode *node) override
void setTimes(std::vector< Real > times)
std::vector< QuantLib::Time > times_
ModelParameter(bool calibrate, ParamType type, std::vector< QuantLib::Time > times, std::vector< QuantLib::Real > values)
Detailed constructor.
const std::vector< QuantLib::Real > & values() const
void setCalibrate(const bool b)
LgmData::ReversionType reversionType_
ReversionParameter(LgmData::ReversionType reversionType, bool calibrate, QuantLib::Real value)
Constructor for constant reversion.
ReversionParameter(LgmData::ReversionType reversionType, bool calibrate, ParamType type, std::vector< QuantLib::Time > times, std::vector< QuantLib::Real > values)
Constructor for piecewise reversion.
void fromXML(XMLNode *node) override
XMLNode * toXML(XMLDocument &doc) const override
LgmData::ReversionType reversionType() const
ReversionParameter()
Default constructor.
const boost::optional< LgmData::VolatilityType > & volatilityType() const
VolatilityParameter(bool calibrate, ParamType type, std::vector< QuantLib::Real > times, std::vector< QuantLib::Real > values)
Constructor for piecewise volatility without an explicit volatility type.
void fromXML(XMLNode *node) override
XMLNode * toXML(XMLDocument &doc) const override
VolatilityParameter()
Default constructor.
VolatilityParameter(LgmData::VolatilityType volatilityType, bool calibrate, ParamType type, std::vector< QuantLib::Time > times, std::vector< QuantLib::Real > values)
Constructor for piecewise volatility with an explicit volatility type.
boost::optional< LgmData::VolatilityType > volatilityType_
Small XML Document wrapper class.
Base class for all serializable classes.
SafeStack< ValueType > value
Linear Gauss Markov model data.
ParamType
Supported calibration parameter type.
Serializable Credit Default Swap.