#include <qle/cashflows/yoyinflationcoupon.hpp>
|
| YoYInflationCoupon (const Date &paymentDate, Real nominal, const Date &startDate, const Date &endDate, Natural fixingDays, const ext::shared_ptr< YoYInflationIndex > &index, const Period &observationLag, const DayCounter &dayCounter, Real gearing=1.0, Spread spread=0.0, const Date &refPeriodStart=Date(), const Date &refPeriodEnd=Date(), bool addInflationNotional=false) |
|
Rate | rate () const override |
|
Extend the QuantLib YoYInflationCoupon, now the payoff is based on growth only (default behaviour) (I_t / I_{t-1} - 1) or I_t / I_{t-1}
Definition at line 39 of file yoyinflationcoupon.hpp.
◆ YoYInflationCoupon()
YoYInflationCoupon |
( |
const Date & |
paymentDate, |
|
|
Real |
nominal, |
|
|
const Date & |
startDate, |
|
|
const Date & |
endDate, |
|
|
Natural |
fixingDays, |
|
|
const ext::shared_ptr< YoYInflationIndex > & |
index, |
|
|
const Period & |
observationLag, |
|
|
const DayCounter & |
dayCounter, |
|
|
Real |
gearing = 1.0 , |
|
|
Spread |
spread = 0.0 , |
|
|
const Date & |
refPeriodStart = Date() , |
|
|
const Date & |
refPeriodEnd = Date() , |
|
|
bool |
addInflationNotional = false |
|
) |
| |
Definition at line 27 of file yoyinflationcoupon.cpp.
32 : QuantLib::YoYInflationCoupon(paymentDate, nominal, startDate, endDate, fixingDays, index, observationLag,
33 dayCounter, gearing, spread, refPeriodStart, refPeriodEnd),
bool addInflationNotional_
◆ rate()
Definition at line 44 of file yoyinflationcoupon.cpp.
44 {
45 Real RateYoY = QuantLib::YoYInflationCoupon::rate();
47 RateYoY = gearing_ * ((RateYoY -
spread_) / gearing_ + 1) +
spread_;
48 }
49 return RateYoY;
50}
◆ accept()
void accept |
( |
AcyclicVisitor & |
v | ) |
|
|
overridevirtual |
◆ addInflationNotional_
bool addInflationNotional_ |
|
private |