QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
|
Base class for year-on-year inflation term structures. More...
#include <inflationtermstructure.hpp>
Inspectors | |
bool | indexIsInterpolated_ |
Rate | yoyRate (const Date &d, const Period &instObsLag=Period(-1, Days), bool forceLinearInterpolation=false, bool extrapolate=false) const |
year-on-year inflation rate. More... | |
Rate | yoyRate (Time t, bool extrapolate=false) const |
year-on-year inflation rate. More... | |
virtual bool | indexIsInterpolated () const |
virtual Rate | yoyRateImpl (Time time) const =0 |
to be defined in derived classes More... | |
Additional Inherited Members | |
Public Types inherited from Observer | |
typedef set_type::iterator | iterator |
Protected Member Functions inherited from InflationTermStructure | |
virtual void | setBaseRate (const Rate &r) |
void | checkRange (const Date &, bool extrapolate) const |
void | checkRange (Time t, bool extrapolate) const |
Protected Member Functions inherited from TermStructure | |
void | checkRange (const Date &d, bool extrapolate) const |
date-range check More... | |
void | checkRange (Time t, bool extrapolate) const |
time-range check More... | |
Protected Attributes inherited from InflationTermStructure | |
ext::shared_ptr< Seasonality > | seasonality_ |
Period | observationLag_ |
Frequency | frequency_ |
Rate | baseRate_ |
Protected Attributes inherited from TermStructure | |
bool | moving_ = false |
bool | updated_ = true |
Calendar | calendar_ |
Base class for year-on-year inflation term structures.
Definition at line 250 of file inflationtermstructure.hpp.
YoYInflationTermStructure | ( | Date | baseDate, |
Rate | baseYoYRate, | ||
Frequency | frequency, | ||
bool | indexIsInterpolated, | ||
const DayCounter & | dayCounter, | ||
const ext::shared_ptr< Seasonality > & | seasonality = {} |
||
) |
Definition at line 266 of file inflationtermstructure.cpp.
YoYInflationTermStructure | ( | const Date & | referenceDate, |
Date | baseDate, | ||
Rate | baseYoYRate, | ||
Frequency | frequency, | ||
bool | indexIsInterpolated, | ||
const DayCounter & | dayCounter, | ||
const ext::shared_ptr< Seasonality > & | seasonality = {} |
||
) |
Definition at line 276 of file inflationtermstructure.cpp.
YoYInflationTermStructure | ( | Natural | settlementDays, |
const Calendar & | calendar, | ||
Date | baseDate, | ||
Rate | baseYoYRate, | ||
Frequency | frequency, | ||
bool | indexIsInterpolated, | ||
const DayCounter & | dayCounter, | ||
const ext::shared_ptr< Seasonality > & | seasonality = {} |
||
) |
Definition at line 288 of file inflationtermstructure.cpp.
QL_DEPRECATED_DISABLE_WARNING YoYInflationTermStructure | ( | const DayCounter & | dayCounter, |
Rate | baseYoYRate, | ||
const Period & | lag, | ||
Frequency | frequency, | ||
bool | indexIsInterpolated, | ||
const ext::shared_ptr< Seasonality > & | seasonality = {} |
||
) |
Definition at line 303 of file inflationtermstructure.cpp.
YoYInflationTermStructure | ( | const Date & | referenceDate, |
const Calendar & | calendar, | ||
const DayCounter & | dayCounter, | ||
Rate | baseYoYRate, | ||
const Period & | lag, | ||
Frequency | frequency, | ||
bool | indexIsInterpolated, | ||
const ext::shared_ptr< Seasonality > & | seasonality = {} |
||
) |
Definition at line 314 of file inflationtermstructure.cpp.
YoYInflationTermStructure | ( | Natural | settlementDays, |
const Calendar & | calendar, | ||
const DayCounter & | dayCounter, | ||
Rate | baseYoYRate, | ||
const Period & | lag, | ||
Frequency | frequency, | ||
bool | indexIsInterpolated, | ||
const ext::shared_ptr< Seasonality > & | seasonality = {} |
||
) |
Definition at line 327 of file inflationtermstructure.cpp.
QL_DEPRECATED_ENABLE_WARNING Rate yoyRate | ( | const Date & | d, |
const Period & | instObsLag = Period(-1,Days) , |
||
bool | forceLinearInterpolation = false , |
||
bool | extrapolate = false |
||
) | const |
year-on-year inflation rate.
The forceLinearInterpolation parameter is relative to the frequency of the TS.
Definition at line 343 of file inflationtermstructure.cpp.
year-on-year inflation rate.
Definition at line 385 of file inflationtermstructure.cpp.
|
virtual |
Definition at line 385 of file inflationtermstructure.hpp.
to be defined in derived classes
Implemented in InterpolatedYoYInflationCurve< Interpolator >.
|
private |
Definition at line 346 of file inflationtermstructure.hpp.