#include <qle/models/dkimpliedyoyinflationtermstructure.hpp>
Public Member Functions | |
DkImpliedYoYInflationTermStructure (const QuantLib::ext::shared_ptr< CrossAssetModel > &model, QuantLib::Size index, bool indexIsInterpolated) | |
Public Member Functions inherited from YoYInflationModelTermStructure | |
YoYInflationModelTermStructure (const QuantLib::ext::shared_ptr< CrossAssetModel > &model, QuantLib::Size index, bool indexIsInterpolated) | |
void | update () override |
QuantLib::Date | maxDate () const override |
QuantLib::Time | maxTime () const override |
const QuantLib::Date & | referenceDate () const override |
QuantLib::Date | baseDate () const override |
virtual void | referenceDate (const QuantLib::Date &d) |
Set the reference date. More... | |
void | state (const QuantLib::Array &s) |
Set the current state variables. More... | |
void | move (const QuantLib::Date &d, const QuantLib::Array &s) |
Set the current state and move the reference date to date d . More... | |
QuantLib::Real | yoyRate (const QuantLib::Date &d, const QuantLib::Period &obsLag=-1 *QuantLib::Days, bool forceLinearInterpolation=false, bool extrapolate=false) const |
YoYInflationModelTermStructure interface | |
std::map< QuantLib::Date, QuantLib::Real > | yoyRates (const std::vector< QuantLib::Date > &dates, const QuantLib::Period &obsLag=-1 *QuantLib::Days) const override |
QuantLib::Real | yoySwapletRate (QuantLib::Time S, QuantLib::Time T) const |
void | checkState () const override |
Additional Inherited Members | |
Protected Member Functions inherited from YoYInflationModelTermStructure | |
QuantLib::Real | yoyRateImpl (QuantLib::Time t) const override |
This cannot be called. The implementation is set to throw an exception. More... | |
Protected Attributes inherited from YoYInflationModelTermStructure | |
QuantLib::ext::shared_ptr< CrossAssetModel > | model_ |
QuantLib::Size | index_ |
bool | indexIsInterpolated_ |
QuantLib::Date | referenceDate_ |
QuantLib::Time | relativeTime_ |
QuantLib::Array | state_ |
Dodgson Kainth (DK) implied year on year inflation term structure
Definition at line 35 of file dkimpliedyoyinflationtermstructure.hpp.
DkImpliedYoYInflationTermStructure | ( | const QuantLib::ext::shared_ptr< CrossAssetModel > & | model, |
QuantLib::Size | index, | ||
bool | indexIsInterpolated | ||
) |
Constructor taking the cross asset model, model
, and the index of the relevant inflation component within the model, index
.
Definition at line 33 of file dkimpliedyoyinflationtermstructure.cpp.
|
overridevirtual |
Return the year-on-year rates for the maturities associated with dates
. If an obsLag
is explicitly provided and not set to -1 * QuantLib::Days
, it is used as the observation lag. Otherwise, the term structure's observation lag is used.
Implements YoYInflationModelTermStructure.
Definition at line 37 of file dkimpliedyoyinflationtermstructure.cpp.
|
protected |
Definition at line 109 of file dkimpliedyoyinflationtermstructure.cpp.
|
overrideprotectedvirtual |
Override this method to perform checks on the state variable array when the state
and move
methods are called.
Reimplemented from YoYInflationModelTermStructure.
Definition at line 114 of file dkimpliedyoyinflationtermstructure.cpp.