#include <qle/termstructures/spreadedinflationcurve.hpp>
Definition at line 62 of file spreadedinflationcurve.hpp.
◆ SpreadedYoYInflationCurve()
times should be consistent with reference ts day counter
Definition at line 71 of file spreadedinflationcurve.cpp.
75 referenceCurve->observationLag(), referenceCurve->frequency(),
76 referenceCurve->indexIsInterpolated(), referenceCurve->seasonality()),
78 QL_REQUIRE(
times_.size() > 1,
"SpreadedZeroInflationCurve: at least two times required");
79 QL_REQUIRE(
times_.size() == quotes.size(),
80 "SpreadedZeroInflationCurve: size of time and quote vectors do not match");
81 for (Size i = 0; i < quotes.size(); ++i) {
83 }
85 QuantLib::ext::make_shared<LinearInterpolation>(
times_.begin(),
times_.end(),
data_.begin()));
88}
std::vector< Time > times_
Handle< YoYInflationTermStructure > referenceCurve_
std::vector< Handle< Quote > > quotes_
QuantLib::ext::shared_ptr< Interpolation > interpolation_
std::vector< Real > data_
◆ maxDate()
◆ update()
◆ referenceDate()
const Date & referenceDate |
( |
| ) |
const |
|
override |
◆ calendar()
Calendar calendar |
( |
| ) |
const |
|
override |
◆ settlementDays()
Natural settlementDays |
( |
| ) |
const |
|
override |
◆ baseDate()
◆ performCalculations()
void performCalculations |
( |
| ) |
const |
|
overrideprotected |
Definition at line 105 of file spreadedinflationcurve.cpp.
105 {
106 for (Size i = 0; i <
times_.size(); ++i) {
107 QL_REQUIRE(!
quotes_[i].empty(),
"SpreadedYoYInflationCurve: quote at index " << i <<
" is empty");
109 }
111}
◆ yoyRateImpl()
Real yoyRateImpl |
( |
Time |
t | ) |
const |
|
overrideprotected |
◆ referenceCurve_
◆ times_
◆ quotes_
std::vector<Handle<Quote> > quotes_ |
|
private |
◆ data_
◆ interpolation_
QuantLib::ext::shared_ptr<Interpolation> interpolation_ |
|
private |