InterpolatedDiscountCurve based on loglinear interpolation of DiscountFactors. More...
#include <qle/termstructures/interpolateddiscountcurve.hpp>
Public Types | |
enum class | Interpolation { logLinear , linearZero } |
enum class | Extrapolation { flatFwd , flatZero } |
TermStructure interface | |
std::vector< Time > | times_ |
std::vector< Time > | timeDiffs_ |
std::vector< QuantLib::ext::shared_ptr< Quote > > | quotes_ |
Interpolation | interpolation_ |
Extrapolation | extrapolation_ |
Date | maxDate () const override |
DiscountFactor | discountImpl (Time t) const override |
Constructors | |
InterpolatedDiscountCurve (const std::vector< Time > ×, const std::vector< Handle< Quote > > "es, const Natural settlementDays, const Calendar &cal, const DayCounter &dc, const Interpolation interpolation=Interpolation::logLinear, const Extrapolation extrapolation=Extrapolation::flatFwd) | |
default constructor More... | |
InterpolatedDiscountCurve (const std::vector< Date > &dates, const std::vector< Handle< Quote > > "es, const Natural settlementDays, const Calendar &cal, const DayCounter &dc, const Interpolation interpolation=Interpolation::logLinear, const Extrapolation extrapolation=Extrapolation::flatFwd) | |
constructor that takes a vector of dates More... | |
void | initalise (const std::vector< Handle< Quote > > "es) |
InterpolatedDiscountCurve based on loglinear interpolation of DiscountFactors.
InterpolatedDiscountCurve based on loglinear interpolation of DiscountFactors, flat fwd extrapolation is always enabled, the term structure has always a floating reference date
\ingroup termstructures
Definition at line 41 of file interpolateddiscountcurve.hpp.
|
strong |
Enumerator | |
---|---|
logLinear | |
linearZero |
Definition at line 43 of file interpolateddiscountcurve.hpp.
|
strong |
Enumerator | |
---|---|
flatFwd | |
flatZero |
Definition at line 44 of file interpolateddiscountcurve.hpp.
InterpolatedDiscountCurve | ( | const std::vector< Time > & | times, |
const std::vector< Handle< Quote > > & | quotes, | ||
const Natural | settlementDays, | ||
const Calendar & | cal, | ||
const DayCounter & | dc, | ||
const Interpolation | interpolation = Interpolation::logLinear , |
||
const Extrapolation | extrapolation = Extrapolation::flatFwd |
||
) |
default constructor
Definition at line 48 of file interpolateddiscountcurve.hpp.
InterpolatedDiscountCurve | ( | const std::vector< Date > & | dates, |
const std::vector< Handle< Quote > > & | quotes, | ||
const Natural | settlementDays, | ||
const Calendar & | cal, | ||
const DayCounter & | dc, | ||
const Interpolation | interpolation = Interpolation::logLinear , |
||
const Extrapolation | extrapolation = Extrapolation::flatFwd |
||
) |
constructor that takes a vector of dates
Definition at line 58 of file interpolateddiscountcurve.hpp.
|
private |
Definition at line 71 of file interpolateddiscountcurve.hpp.
|
overrideprivate |
Definition at line 84 of file interpolateddiscountcurve.hpp.
|
overrideprotected |
Definition at line 88 of file interpolateddiscountcurve.hpp.
|
private |
Definition at line 109 of file interpolateddiscountcurve.hpp.
|
private |
Definition at line 110 of file interpolateddiscountcurve.hpp.
|
private |
Definition at line 111 of file interpolateddiscountcurve.hpp.
|
private |
Definition at line 112 of file interpolateddiscountcurve.hpp.
|
private |
Definition at line 113 of file interpolateddiscountcurve.hpp.