#include <qle/models/yoyswaphelper.hpp>
Public Member Functions | |
YoYSwapHelper (const QuantLib::Handle< QuantLib::Quote > &rate, QuantLib::Natural settlementDays, const QuantLib::Period &tenor, const QuantLib::ext::shared_ptr< QuantLib::YoYInflationIndex > &yoyIndex, const QuantLib::Handle< QuantLib::YieldTermStructure > &rateCurve, const QuantLib::Period &observationLag, const QuantLib::Calendar &yoyCalendar, QuantLib::BusinessDayConvention yoyConvention, const QuantLib::DayCounter &yoyDayCount, const QuantLib::Calendar &fixedCalendar, QuantLib::BusinessDayConvention fixedConvention, const QuantLib::DayCounter &fixedDayCount, const QuantLib::Calendar &paymentCalendar, QuantLib::BusinessDayConvention paymentConvention, const QuantLib::Period &fixedTenor=1 *QuantLib::Years, const QuantLib::Period &yoyTenor=1 *QuantLib::Years) | |
Year on year helper constructor. More... | |
CalibrationHelper interface | |
QuantLib::Real | calibrationError () override |
Observer interface | |
void | update () override |
YoYSwapHelper inspectors | |
QuantLib::Handle< QuantLib::Quote > | rate_ |
The YoY market swap quote. More... | |
QuantLib::ext::shared_ptr< QuantLib::YearOnYearInflationSwap > | yoySwap_ |
The underlying YoY swap. More... | |
QuantLib::ext::shared_ptr< QuantLib::PricingEngine > | engine_ |
The pricing engine used to value the YoY swap. More... | |
QuantLib::Date | evaluationDate_ |
QuantLib::Natural | settlementDays_ |
QuantLib::Period | tenor_ |
QuantLib::ext::shared_ptr< QuantLib::YoYInflationIndex > | yoyIndex_ |
QuantLib::Handle< QuantLib::YieldTermStructure > | rateCurve_ |
QuantLib::Period | observationLag_ |
QuantLib::Calendar | yoyCalendar_ |
QuantLib::BusinessDayConvention | yoyConvention_ |
QuantLib::DayCounter | yoyDayCount_ |
QuantLib::Calendar | fixedCalendar_ |
QuantLib::BusinessDayConvention | fixedConvention_ |
QuantLib::DayCounter | fixedDayCount_ |
QuantLib::Calendar | paymentCalendar_ |
QuantLib::BusinessDayConvention | paymentConvention_ |
QuantLib::Period | fixedTenor_ |
QuantLib::Period | yoyTenor_ |
QuantLib::ext::shared_ptr< QuantLib::YearOnYearInflationSwap > | yoySwap () const |
void | setPricingEngine (const QuantLib::ext::shared_ptr< QuantLib::PricingEngine > &engine) |
Set the pricing engine to be used by the underlying YoY swap. More... | |
QuantLib::Real | marketRate () const |
Return the market fair year on year rate. More... | |
QuantLib::Real | modelRate () const |
Return the model implied fair year on year rate. More... | |
void | createSwap () |
Create the underlying YoY swap. More... | |
Year on year (YoY) inflation swap calibration helper.
Definition at line 35 of file yoyswaphelper.hpp.
YoYSwapHelper | ( | const QuantLib::Handle< QuantLib::Quote > & | rate, |
QuantLib::Natural | settlementDays, | ||
const QuantLib::Period & | tenor, | ||
const QuantLib::ext::shared_ptr< QuantLib::YoYInflationIndex > & | yoyIndex, | ||
const QuantLib::Handle< QuantLib::YieldTermStructure > & | rateCurve, | ||
const QuantLib::Period & | observationLag, | ||
const QuantLib::Calendar & | yoyCalendar, | ||
QuantLib::BusinessDayConvention | yoyConvention, | ||
const QuantLib::DayCounter & | yoyDayCount, | ||
const QuantLib::Calendar & | fixedCalendar, | ||
QuantLib::BusinessDayConvention | fixedConvention, | ||
const QuantLib::DayCounter & | fixedDayCount, | ||
const QuantLib::Calendar & | paymentCalendar, | ||
QuantLib::BusinessDayConvention | paymentConvention, | ||
const QuantLib::Period & | fixedTenor = 1 * QuantLib::Years , |
||
const QuantLib::Period & | yoyTenor = 1 * QuantLib::Years |
||
) |
Year on year helper constructor.
Definition at line 44 of file yoyswaphelper.cpp.
|
override |
Definition at line 85 of file yoyswaphelper.cpp.
|
override |
Definition at line 90 of file yoyswaphelper.cpp.
QuantLib::ext::shared_ptr< YearOnYearInflationSwap > yoySwap | ( | ) | const |
Definition at line 98 of file yoyswaphelper.cpp.
void setPricingEngine | ( | const QuantLib::ext::shared_ptr< QuantLib::PricingEngine > & | engine | ) |
Set the pricing engine to be used by the underlying YoY swap.
Definition at line 102 of file yoyswaphelper.cpp.
Real marketRate | ( | ) | const |
Return the market fair year on year rate.
Definition at line 106 of file yoyswaphelper.cpp.
Real modelRate | ( | ) | const |
Return the model implied fair year on year rate.
Definition at line 110 of file yoyswaphelper.cpp.
|
private |
Create the underlying YoY swap.
Definition at line 115 of file yoyswaphelper.cpp.
|
private |
The YoY market swap quote.
Definition at line 84 of file yoyswaphelper.hpp.
|
private |
The underlying YoY swap.
Definition at line 87 of file yoyswaphelper.hpp.
|
private |
The pricing engine used to value the YoY swap.
Definition at line 90 of file yoyswaphelper.hpp.
|
private |
Definition at line 93 of file yoyswaphelper.hpp.
|
private |
Definition at line 94 of file yoyswaphelper.hpp.
|
private |
Definition at line 95 of file yoyswaphelper.hpp.
|
private |
Definition at line 96 of file yoyswaphelper.hpp.
|
private |
Definition at line 97 of file yoyswaphelper.hpp.
|
private |
Definition at line 98 of file yoyswaphelper.hpp.
|
private |
Definition at line 99 of file yoyswaphelper.hpp.
|
private |
Definition at line 100 of file yoyswaphelper.hpp.
|
private |
Definition at line 101 of file yoyswaphelper.hpp.
|
private |
Definition at line 102 of file yoyswaphelper.hpp.
|
private |
Definition at line 103 of file yoyswaphelper.hpp.
|
private |
Definition at line 104 of file yoyswaphelper.hpp.
|
private |
Definition at line 105 of file yoyswaphelper.hpp.
|
private |
Definition at line 106 of file yoyswaphelper.hpp.
|
private |
Definition at line 107 of file yoyswaphelper.hpp.
|
private |
Definition at line 108 of file yoyswaphelper.hpp.