#include <qle/termstructures/creditvolcurve.hpp>
Public Member Functions | |
SpreadedCreditVolCurve (const QuantLib::Handle< CreditVolCurve > baseCurve, const std::vector< QuantLib::Date > expiries, const std::vector< QuantLib::Handle< QuantLib::Quote > > spreads, const bool stickyMoneyness, const std::vector< QuantLib::Period > &terms={}, const std::vector< QuantLib::Handle< CreditCurve > > &termCurves={}) | |
QuantLib::Real | volatility (const QuantLib::Date &exerciseDate, const QuantLib::Real underlyingLength, const QuantLib::Real strike, const Type &targetType) const override |
const QuantLib::Date & | referenceDate () const override |
Public Member Functions inherited from CreditVolCurve | |
CreditVolCurve (QuantLib::BusinessDayConvention bdc, const QuantLib::DayCounter &dc, const std::vector< QuantLib::Period > &terms, const std::vector< QuantLib::Handle< CreditCurve > > &termCurves, const Type &type) | |
CreditVolCurve (const QuantLib::Natural settlementDays, const QuantLib::Calendar &cal, QuantLib::BusinessDayConvention bdc, const QuantLib::DayCounter &dc, const std::vector< QuantLib::Period > &terms, const std::vector< QuantLib::Handle< CreditCurve > > &termCurves, const Type &type) | |
CreditVolCurve (const QuantLib::Date &referenceDate, const QuantLib::Calendar &cal, QuantLib::BusinessDayConvention bdc, const QuantLib::DayCounter &dc, const std::vector< QuantLib::Period > &terms, const std::vector< QuantLib::Handle< CreditCurve > > &termCurves, const Type &type) | |
QuantLib::Real | volatility (const QuantLib::Date &exerciseDate, const QuantLib::Period &underlyingTerm, const QuantLib::Real strike, const Type &targetType) const |
virtual QuantLib::Real | volatility (const QuantLib::Date &exerciseDate, const QuantLib::Real underlyingLength, const QuantLib::Real strike, const Type &targetType) const =0 |
QuantLib::Real | volatility (const QuantLib::Real exerciseTime, const QuantLib::Real underlyingLength, const QuantLib::Real strike, const Type &targetType) const |
virtual const std::vector< QuantLib::Period > & | terms () const |
virtual const std::vector< QuantLib::Handle< CreditCurve > > & | termCurves () const |
const Type & | type () const |
QuantLib::Real | atmStrike (const QuantLib::Date &expiry, const QuantLib::Period &term) const |
QuantLib::Real | atmStrike (const QuantLib::Date &expiry, const QuantLib::Real underlyingLength) const |
QuantLib::Real | minStrike () const override |
QuantLib::Real | maxStrike () const override |
QuantLib::Date | maxDate () const override |
Private Member Functions | |
void | performCalculations () const override |
Private Attributes | |
QuantLib::Handle< CreditVolCurve > | baseCurve_ |
std::vector< QuantLib::Date > | expiries_ |
std::vector< QuantLib::Handle< QuantLib::Quote > > | spreads_ |
const bool | stickyMoneyness_ |
std::vector< QuantLib::Real > | times_ |
std::vector< QuantLib::Real > | spreadValues_ |
QuantLib::ext::shared_ptr< QuantLib::Interpolation > | interpolatedSpreads_ |
Additional Inherited Members | |
Public Types inherited from CreditVolCurve | |
enum class | Type { Price , Spread } |
Protected Member Functions inherited from CreditVolCurve | |
void | init () |
void | update () override |
void | performCalculations () const override |
QuantLib::Real | moneyness (const QuantLib::Real strike, const QuantLib::Real atmStrike) const |
QuantLib::Real | strike (const QuantLib::Real moneyness, const QuantLib::Real atmStrike) const |
Protected Attributes inherited from CreditVolCurve | |
std::vector< QuantLib::Period > | terms_ |
std::vector< QuantLib::Handle< CreditCurve > > | termCurves_ |
Type | type_ |
std::map< std::pair< QuantLib::Date, double >, double > | atmStrikeCache_ |
Definition at line 142 of file creditvolcurve.hpp.
SpreadedCreditVolCurve | ( | const QuantLib::Handle< CreditVolCurve > | baseCurve, |
const std::vector< QuantLib::Date > | expiries, | ||
const std::vector< QuantLib::Handle< QuantLib::Quote > > | spreads, | ||
const bool | stickyMoneyness, | ||
const std::vector< QuantLib::Period > & | terms = {} , |
||
const std::vector< QuantLib::Handle< CreditCurve > > & | termCurves = {} |
||
) |
Definition at line 566 of file creditvolcurve.cpp.
|
overridevirtual |
Implements CreditVolCurve.
Definition at line 593 of file creditvolcurve.cpp.
|
override |
Definition at line 576 of file creditvolcurve.cpp.
|
overrideprivate |
Definition at line 578 of file creditvolcurve.cpp.
|
private |
Definition at line 159 of file creditvolcurve.hpp.
|
private |
Definition at line 160 of file creditvolcurve.hpp.
|
private |
Definition at line 161 of file creditvolcurve.hpp.
|
private |
Definition at line 162 of file creditvolcurve.hpp.
|
mutableprivate |
Definition at line 164 of file creditvolcurve.hpp.
|
mutableprivate |
Definition at line 165 of file creditvolcurve.hpp.
|
mutableprivate |
Definition at line 166 of file creditvolcurve.hpp.