Interpolated price curve. More...
#include <qle/termstructures/pricecurve.hpp>
Public Member Functions | |
Constructors | |
InterpolatedPriceCurve (const std::vector< QuantLib::Period > &tenors, const std::vector< QuantLib::Real > &prices, const QuantLib::DayCounter &dc, const QuantLib::Currency ¤cy, const Interpolator &interpolator=Interpolator()) | |
Curve constructed from periods and prices. No conventions are applied in getting to a date from a period. More... | |
InterpolatedPriceCurve (const std::vector< QuantLib::Period > &tenors, const std::vector< QuantLib::Handle< QuantLib::Quote > > "es, const QuantLib::DayCounter &dc, const QuantLib::Currency ¤cy, const Interpolator &interpolator=Interpolator()) | |
Curve constructed from periods and quotes. No conventions are applied in getting to a date from a period. More... | |
InterpolatedPriceCurve (const QuantLib::Date &referenceDate, const std::vector< QuantLib::Date > &dates, const std::vector< QuantLib::Real > &prices, const QuantLib::DayCounter &dc, const QuantLib::Currency ¤cy, const Interpolator &interpolator=Interpolator()) | |
Curve constructed from dates and prices. More... | |
InterpolatedPriceCurve (const QuantLib::Date &referenceDate, const std::vector< QuantLib::Date > &dates, const std::vector< QuantLib::Handle< QuantLib::Quote > > "es, const QuantLib::DayCounter &dc, const QuantLib::Currency ¤cy, const Interpolator &interpolator=Interpolator()) | |
Curve constructed from dates and quotes. More... | |
Observer interface | |
void | update () override |
TermStructure interface | |
QuantLib::Date | maxDate () const override |
QuantLib::Time | maxTime () const override |
PriceTermStructure interface | |
QuantLib::Time | minTime () const override |
The minimum time for which the curve can return values. More... | |
std::vector< QuantLib::Date > | pillarDates () const override |
The pillar dates for the PriceTermStructure. More... | |
const QuantLib::Currency & | currency () const override |
The currency in which prices are expressed. More... | |
Public Member Functions inherited from PriceTermStructure | |
PriceTermStructure (const QuantLib::DayCounter &dc=QuantLib::DayCounter()) | |
PriceTermStructure (const QuantLib::Date &referenceDate, const QuantLib::Calendar &cal=QuantLib::Calendar(), const QuantLib::DayCounter &dc=QuantLib::DayCounter()) | |
PriceTermStructure (QuantLib::Natural settlementDays, const QuantLib::Calendar &cal, const QuantLib::DayCounter &dc=QuantLib::DayCounter()) | |
QuantLib::Real | price (QuantLib::Time t, bool extrapolate=false) const |
QuantLib::Real | price (const QuantLib::Date &d, bool extrapolate=false) const |
void | update () override |
Protected Member Functions | |
LazyObject interface | |
void | performCalculations () const override |
Protected Member Functions inherited from PriceTermStructure | |
void | checkRange (QuantLib::Time t, bool extrapolate) const |
Extra time range check for minimum time, then calls TermStructure::checkRange. More... | |
PriceTermStructure implementation | |
std::vector< QuantLib::Date > | dates_ |
const QuantLib::Currency | currency_ |
std::vector< QuantLib::Handle< QuantLib::Quote > > | quotes_ |
std::vector< QuantLib::Period > | tenors_ |
QuantLib::Real | priceImpl (QuantLib::Time t) const override |
Price calculation. More... | |
void | initialise () |
void | populateDatesFromTenors () const |
void | convertDatesToTimes () |
void | getPricesFromQuotes () const |
Inspectors | |
const std::vector< QuantLib::Time > & | times () const |
const std::vector< QuantLib::Real > & | prices () const |
InterpolatedPriceCurve (const QuantLib::Date &referenceDate, const QuantLib::DayCounter &dc, const QuantLib::Currency ¤cy, const Interpolator &interpolator=Interpolator()) | |
Used by PiecewisePriceCurve. More... | |
Interpolated price curve.
Class representing a curve of projected prices in the future.
Definition at line 48 of file pricecurve.hpp.
InterpolatedPriceCurve | ( | const std::vector< QuantLib::Period > & | tenors, |
const std::vector< QuantLib::Real > & | prices, | ||
const QuantLib::DayCounter & | dc, | ||
const QuantLib::Currency & | currency, | ||
const Interpolator & | interpolator = Interpolator() |
||
) |
Curve constructed from periods and prices. No conventions are applied in getting to a date from a period.
Definition at line 131 of file pricecurve.hpp.
InterpolatedPriceCurve | ( | const std::vector< QuantLib::Period > & | tenors, |
const std::vector< QuantLib::Handle< QuantLib::Quote > > & | quotes, | ||
const QuantLib::DayCounter & | dc, | ||
const QuantLib::Currency & | currency, | ||
const Interpolator & | interpolator = Interpolator() |
||
) |
Curve constructed from periods and quotes. No conventions are applied in getting to a date from a period.
Definition at line 147 of file pricecurve.hpp.
InterpolatedPriceCurve | ( | const QuantLib::Date & | referenceDate, |
const std::vector< QuantLib::Date > & | dates, | ||
const std::vector< QuantLib::Real > & | prices, | ||
const QuantLib::DayCounter & | dc, | ||
const QuantLib::Currency & | currency, | ||
const Interpolator & | interpolator = Interpolator() |
||
) |
Curve constructed from dates and prices.
Definition at line 167 of file pricecurve.hpp.
InterpolatedPriceCurve | ( | const QuantLib::Date & | referenceDate, |
const std::vector< QuantLib::Date > & | dates, | ||
const std::vector< QuantLib::Handle< QuantLib::Quote > > & | quotes, | ||
const QuantLib::DayCounter & | dc, | ||
const QuantLib::Currency & | currency, | ||
const Interpolator & | interpolator = Interpolator() |
||
) |
Curve constructed from dates and quotes.
Definition at line 183 of file pricecurve.hpp.
|
protected |
Used by PiecewisePriceCurve.
Definition at line 203 of file pricecurve.hpp.
|
override |
Definition at line 209 of file pricecurve.hpp.
|
override |
Definition at line 233 of file pricecurve.hpp.
|
override |
Definition at line 238 of file pricecurve.hpp.
|
overridevirtual |
The minimum time for which the curve can return values.
Reimplemented from PriceTermStructure.
Definition at line 243 of file pricecurve.hpp.
|
overridevirtual |
The pillar dates for the PriceTermStructure.
Implements PriceTermStructure.
Definition at line 248 of file pricecurve.hpp.
|
overridevirtual |
The currency in which prices are expressed.
Implements PriceTermStructure.
Definition at line 92 of file pricecurve.hpp.
const std::vector< QuantLib::Time > & times | ( | ) | const |
Definition at line 97 of file pricecurve.hpp.
const std::vector< QuantLib::Real > & prices | ( | ) | const |
Definition at line 98 of file pricecurve.hpp.
|
overrideprotected |
Definition at line 219 of file pricecurve.hpp.
|
overrideprotectedvirtual |
Price calculation.
Implements PriceTermStructure.
Definition at line 253 of file pricecurve.hpp.
|
private |
Definition at line 259 of file pricecurve.hpp.
|
private |
Definition at line 274 of file pricecurve.hpp.
|
private |
Definition at line 282 of file pricecurve.hpp.
|
private |
Definition at line 294 of file pricecurve.hpp.
|
mutableprotected |
Definition at line 117 of file pricecurve.hpp.
|
private |
Definition at line 120 of file pricecurve.hpp.
|
private |
Definition at line 121 of file pricecurve.hpp.
|
private |
Definition at line 122 of file pricecurve.hpp.