#include <qle/termstructures/iborfallbackcurve.hpp>
Definition at line 31 of file iborfallbackcurve.hpp.
◆ IborFallbackCurve()
IborFallbackCurve |
( |
const QuantLib::ext::shared_ptr< IborIndex > & |
originalIndex, |
|
|
const QuantLib::ext::shared_ptr< OvernightIndex > & |
rfrIndex, |
|
|
const Real |
spread, |
|
|
const Date & |
switchDate |
|
) |
| |
Definition at line 29 of file iborfallbackcurve.cpp.
35 registerWith(
rfrIndex->forwardingTermStructure());
36
37
38 enableExtrapolation();
39}
QuantLib::ext::shared_ptr< IborIndex > originalIndex_
QuantLib::ext::shared_ptr< OvernightIndex > rfrIndex_
QuantLib::ext::shared_ptr< OvernightIndex > rfrIndex() const
const Date & switchDate() const
QuantLib::ext::shared_ptr< IborIndex > originalIndex() const
◆ originalIndex()
QuantLib::ext::shared_ptr< IborIndex > originalIndex |
( |
| ) |
const |
◆ rfrIndex()
QuantLib::ext::shared_ptr< OvernightIndex > rfrIndex |
( |
| ) |
const |
◆ spread()
◆ switchDate()
const Date & switchDate |
( |
| ) |
const |
◆ referenceDate()
const Date & referenceDate |
( |
| ) |
const |
|
override |
◆ maxDate()
◆ calendar()
Calendar calendar |
( |
| ) |
const |
|
override |
◆ settlementDays()
Natural settlementDays |
( |
| ) |
const |
|
override |
◆ discountImpl()
Real discountImpl |
( |
QuantLib::Time |
t | ) |
const |
|
overrideprivate |
Definition at line 61 of file iborfallbackcurve.cpp.
61 {
62 Date today = Settings::instance().evaluationDate();
65 }
67 Real couponTime =
rfrIndex_->dayCounter().yearFraction(today, endDate);
68 Real curveTime = timeFromReference(endDate);
69 Real s = std::log(1.0 + couponTime *
spread_) / curveTime;
70 return rfrIndex_->forwardingTermStructure()->discount(t) * std::exp(-s * t);
71}
◆ originalIndex_
QuantLib::ext::shared_ptr<IborIndex> originalIndex_ |
|
private |
◆ rfrIndex_
QuantLib::ext::shared_ptr<OvernightIndex> rfrIndex_ |
|
private |
◆ spread_
◆ switchDate_