InterpolatedDiscountCurve2 as in QuantLib, but with floating discount quotes and floating reference date. More...
#include <qle/termstructures/interpolateddiscountcurve2.hpp>
Public Types | |
enum class | Interpolation { logLinear , linearZero } |
enum class | Extrapolation { flatFwd , flatZero } |
Constructors | |
std::vector< Time > | times_ |
std::vector< Handle< Quote > > | quotes_ |
Interpolation | interpolation_ |
Extrapolation | extrapolation_ |
std::vector< Real > | data_ |
Date | today_ |
QuantLib::ext::shared_ptr< QuantLib::Interpolation > | dataInterpolation_ |
InterpolatedDiscountCurve2 (const std::vector< Time > ×, const std::vector< Handle< Quote > > "es, const DayCounter &dc, const Interpolation interpolation=Interpolation::logLinear, const Extrapolation extrapolation=Extrapolation::flatFwd) | |
times based constructor, note that times should be consistent with day counter dc passed More... | |
InterpolatedDiscountCurve2 (const std::vector< Date > &dates, const std::vector< Handle< Quote > > "es, const DayCounter &dc, const Interpolation interpolation=Interpolation::logLinear, const Extrapolation extrapolation=Extrapolation::flatFwd) | |
date based constructor More... | |
Date | maxDate () const override |
void | update () override |
const Date & | referenceDate () const override |
Calendar | calendar () const override |
Natural | settlementDays () const override |
void | performCalculations () const override |
DiscountFactor | discountImpl (Time t) const override |
InterpolatedDiscountCurve2 as in QuantLib, but with floating discount quotes and floating reference date.
InterpolatedDiscountCurve2 as in QuantLib, but with floating discount quotes and floating reference date, reference date is always the global evaluation date, i.e. settlement days are zero and calendar is NullCalendar()
\ingroup termstructures
Definition at line 44 of file interpolateddiscountcurve2.hpp.
|
strong |
Enumerator | |
---|---|
logLinear | |
linearZero |
Definition at line 46 of file interpolateddiscountcurve2.hpp.
|
strong |
Enumerator | |
---|---|
flatFwd | |
flatZero |
Definition at line 47 of file interpolateddiscountcurve2.hpp.
InterpolatedDiscountCurve2 | ( | const std::vector< Time > & | times, |
const std::vector< Handle< Quote > > & | quotes, | ||
const DayCounter & | dc, | ||
const Interpolation | interpolation = Interpolation::logLinear , |
||
const Extrapolation | extrapolation = Extrapolation::flatFwd |
||
) |
times based constructor, note that times should be consistent with day counter dc passed
Definition at line 51 of file interpolateddiscountcurve2.hpp.
InterpolatedDiscountCurve2 | ( | const std::vector< Date > & | dates, |
const std::vector< Handle< Quote > > & | quotes, | ||
const DayCounter & | dc, | ||
const Interpolation | interpolation = Interpolation::logLinear , |
||
const Extrapolation | extrapolation = Extrapolation::flatFwd |
||
) |
date based constructor
Definition at line 72 of file interpolateddiscountcurve2.hpp.
|
override |
Definition at line 96 of file interpolateddiscountcurve2.hpp.
|
override |
Definition at line 97 of file interpolateddiscountcurve2.hpp.
|
override |
Definition at line 101 of file interpolateddiscountcurve2.hpp.
|
override |
Definition at line 106 of file interpolateddiscountcurve2.hpp.
|
override |
Definition at line 107 of file interpolateddiscountcurve2.hpp.
|
overrideprotected |
Definition at line 110 of file interpolateddiscountcurve2.hpp.
|
overrideprotected |
Definition at line 124 of file interpolateddiscountcurve2.hpp.
|
private |
Definition at line 145 of file interpolateddiscountcurve2.hpp.
|
private |
Definition at line 146 of file interpolateddiscountcurve2.hpp.
|
private |
Definition at line 147 of file interpolateddiscountcurve2.hpp.
|
private |
Definition at line 148 of file interpolateddiscountcurve2.hpp.
|
mutableprivate |
Definition at line 149 of file interpolateddiscountcurve2.hpp.
|
mutableprivate |
Definition at line 150 of file interpolateddiscountcurve2.hpp.
|
private |
Definition at line 151 of file interpolateddiscountcurve2.hpp.