#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 More... | |
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 |
Private Attributes | |
Handle< YieldTermStructure > | referenceCurve_ |
std::vector< Time > | times_ |
std::vector< Handle< Quote > > | quotes_ |
Interpolation | interpolation_ |
Extrapolation | extrapolation_ |
std::vector< Real > | data_ |
QuantLib::ext::shared_ptr< QuantLib::Interpolation > | dataInterpolation_ |
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.
Definition at line 39 of file spreadeddiscountcurve.hpp.
|
strong |
|
strong |
Enumerator | |
---|---|
flatFwd | |
flatZero |
Definition at line 42 of file spreadeddiscountcurve.hpp.
SpreadedDiscountCurve | ( | const Handle< YieldTermStructure > & | referenceCurve, |
const std::vector< Time > & | times, | ||
const std::vector< Handle< Quote > > & | quotes, | ||
const Interpolation | interpolation = Interpolation::logLinear , |
||
const Extrapolation | extrapolation = Extrapolation::flatFwd |
||
) |
times should be consistent with reference ts day counter
Definition at line 25 of file spreadeddiscountcurve.cpp.
|
override |
Definition at line 45 of file spreadeddiscountcurve.cpp.
|
override |
Definition at line 47 of file spreadeddiscountcurve.cpp.
|
override |
Definition at line 52 of file spreadeddiscountcurve.cpp.
|
override |
Definition at line 54 of file spreadeddiscountcurve.cpp.
|
override |
Definition at line 56 of file spreadeddiscountcurve.cpp.
|
overrideprotected |
Definition at line 58 of file spreadeddiscountcurve.cpp.
|
overrideprotected |
Definition at line 72 of file spreadeddiscountcurve.cpp.
|
private |
Definition at line 61 of file spreadeddiscountcurve.hpp.
|
private |
Definition at line 62 of file spreadeddiscountcurve.hpp.
|
private |
Definition at line 63 of file spreadeddiscountcurve.hpp.
|
private |
Definition at line 64 of file spreadeddiscountcurve.hpp.
|
private |
Definition at line 65 of file spreadeddiscountcurve.hpp.
|
mutableprivate |
Definition at line 66 of file spreadeddiscountcurve.hpp.
|
private |
Definition at line 67 of file spreadeddiscountcurve.hpp.