#include <qle/termstructures/spreadeddiscountcurve.hpp>
Public Types | |
enum class | Interpolation { logLinear , linearZero } |
enum class | Extrapolation { flatFwd , flatZero } |
Public Member Functions | |
SpreadedDiscountCurve (const Handle< YieldTermStructure > &referenceCurve, const std::vector< Time > ×, const std::vector< Handle< Quote >> "es, const Interpolation interpolation=Interpolation::logLinear, const Extrapolation extrapolation=Extrapolation::flatFwd) | |
times should be consistent with reference ts day counter | |
Date | maxDate () const override |
void | update () override |
const Date & | referenceDate () const override |
Calendar | calendar () const override |
Natural | settlementDays () const override |
Protected Member Functions | |
void | performCalculations () const override |
DiscountFactor | discountImpl (Time t) const override |
Curve taking a reference curve and discount factor quotes, that are used to overlay the reference curve with a spread. The quotes are interpolated loglinearly. The spread curve is given in terms of times relative to the reference date, which means that the spread will float with a changing reference date in the reference curve.