Wrapper that creates a yoy from a zc index. More...
#include <qle/indexes/inflationindexwrapper.hpp>
Public Member Functions | |
YoYInflationIndexWrapper (const QuantLib::ext::shared_ptr< ZeroInflationIndex > zeroIndex, const bool interpolated, const Handle< YoYInflationTermStructure > &ts=Handle< YoYInflationTermStructure >()) | |
Rate | fixing (const Date &fixingDate, bool forecastTodaysFixing=false) const override |
const QuantLib::ext::shared_ptr< ZeroInflationIndex > | zeroIndex () const |
Private Member Functions | |
Rate | forecastFixing (const Date &fixingDate) const |
Private Attributes | |
const QuantLib::ext::shared_ptr< ZeroInflationIndex > | zeroIndex_ |
Wrapper that creates a yoy from a zc index.
This creates a "ratio" - type YoYInflationIndex with the same family name as the zero index so that historical fixings can be reused. If a yoy ts is given, this is used to forecast fixings. If the ts is not given, the forecast falls back on the zero index, i.e. if the zero index has a curve attached a plain yoy rate without convexity adjustment is estimated using this index. The interpolation follows
Definition at line 67 of file inflationindexwrapper.hpp.
YoYInflationIndexWrapper | ( | const QuantLib::ext::shared_ptr< ZeroInflationIndex > | zeroIndex, |
const bool | interpolated, | ||
const Handle< YoYInflationTermStructure > & | ts = Handle<YoYInflationTermStructure>() |
||
) |
Definition at line 64 of file inflationindexwrapper.cpp.
|
override |
Definition at line 71 of file inflationindexwrapper.cpp.
const QuantLib::ext::shared_ptr< ZeroInflationIndex > zeroIndex | ( | ) | const |
Definition at line 73 of file inflationindexwrapper.hpp.
|
private |
Definition at line 82 of file inflationindexwrapper.cpp.
|
private |
Definition at line 77 of file inflationindexwrapper.hpp.