26#ifndef ql_inflation_bootstrap_traits_hpp
27#define ql_inflation_bootstrap_traits_hpp
76 Rate r = *(std::min_element(c->data().begin(), c->data().end()));
77 return r<0.0 ?
Real(
r*2.0) :
r/2.0;
88 Rate r = *(std::max_element(c->data().begin(), c->data().end()));
89 return r<0.0 ?
Real(
r/2.0) :
r*2.0;
117 return t->baseDate();
122 return t->baseRate();
146 Rate r = *(std::min_element(c->data().begin(), c->data().end()));
147 return r<0.0 ?
Real(
r*2.0) :
r/2.0;
158 Rate r = *(std::max_element(c->data().begin(), c->data().end()));
159 return r<0.0 ?
Real(
r/2.0) :
r*2.0;
base helper class used for bootstrapping
Base helper class for bootstrapping.
Base class for year-on-year inflation term structures.
Bootstrap traits to use for PiecewiseZeroInflationCurve.
static Date initialDate(const YoYInflationTermStructure *t)
static Rate minValueAfter(Size, const C *c, bool validData, Size)
static Rate guess(Size i, const C *c, bool validData, Size)
static Rate initialValue(const YoYInflationTermStructure *t)
BootstrapHelper< YoYInflationTermStructure > helper
static Size maxIterations()
static void updateGuess(std::vector< Rate > &data, Rate level, Size i)
static Rate maxValueAfter(Size, const C *c, bool validData, Size)
Interface for zero inflation term structures.
Bootstrap traits to use for PiecewiseZeroInflationCurve.
static Rate minValueAfter(Size, const C *c, bool validData, Size)
static Date initialDate(const ZeroInflationTermStructure *t)
static Rate guess(Size i, const C *c, bool validData, Size)
BootstrapHelper< ZeroInflationTermStructure > helper
static Size maxIterations()
static void updateGuess(std::vector< Rate > &data, Rate level, Size i)
static Rate initialValue(const ZeroInflationTermStructure *)
static Rate maxValueAfter(Size, const C *c, bool validData, Size)
std::size_t Size
size of a container
Inflation term structure based on the interpolation of year-on-year rates.
Inflation term structure based on the interpolation of zero rates.
constexpr double maxInflation
constexpr double avgInflation
ext::shared_ptr< YieldTermStructure > r