Spreaded Default Term Structure, the spread is given in terms of loglinearly interpolated survival probabilities. More...
#include <qle/termstructures/spreadedsurvivalprobabilitytermstructure.hpp>
Public Types | |
enum class | Extrapolation { flatFwd , flatZero } |
Public Member Functions | |
SpreadedSurvivalProbabilityTermStructure (const Handle< DefaultProbabilityTermStructure > &referenceCurve, const std::vector< Time > ×, const std::vector< Handle< Quote > > &spreads, const Extrapolation extrapolation=Extrapolation::flatFwd) | |
times should be consistent with reference ts day counter More... | |
TermStructure interface | |
Handle< DefaultProbabilityTermStructure > | referenceCurve_ |
std::vector< Time > | times_ |
std::vector< Handle< Quote > > | spreads_ |
std::vector< Real > | data_ |
QuantLib::ext::shared_ptr< Interpolation > | interpolation_ |
Extrapolation | extrapolation_ |
DayCounter | dayCounter () const override |
Date | maxDate () const override |
Time | maxTime () const override |
const Date & | referenceDate () const override |
Calendar | calendar () const override |
Natural | settlementDays () const override |
std::vector< Time > | times () |
Handle< DefaultProbabilityTermStructure > | referenceCurve () const |
void | performCalculations () const override |
Probability | survivalProbabilityImpl (Time) const override |
void | update () override |
Spreaded Default Term Structure, the spread is given in terms of loglinearly interpolated survival probabilities.
Definition at line 35 of file spreadedsurvivalprobabilitytermstructure.hpp.
|
strong |
Enumerator | |
---|---|
flatFwd | |
flatZero |
Definition at line 37 of file spreadedsurvivalprobabilitytermstructure.hpp.
SpreadedSurvivalProbabilityTermStructure | ( | const Handle< DefaultProbabilityTermStructure > & | referenceCurve, |
const std::vector< Time > & | times, | ||
const std::vector< Handle< Quote > > & | spreads, | ||
const Extrapolation | extrapolation = Extrapolation::flatFwd |
||
) |
times should be consistent with reference ts day counter
Definition at line 23 of file spreadedsurvivalprobabilitytermstructure.cpp.
|
override |
Definition at line 71 of file spreadedsurvivalprobabilitytermstructure.cpp.
|
override |
Definition at line 73 of file spreadedsurvivalprobabilitytermstructure.cpp.
|
override |
Definition at line 75 of file spreadedsurvivalprobabilitytermstructure.cpp.
|
override |
Definition at line 77 of file spreadedsurvivalprobabilitytermstructure.cpp.
|
override |
Definition at line 79 of file spreadedsurvivalprobabilitytermstructure.cpp.
|
override |
Definition at line 81 of file spreadedsurvivalprobabilitytermstructure.cpp.
std::vector< Time > times | ( | ) |
Definition at line 83 of file spreadedsurvivalprobabilitytermstructure.cpp.
Handle< DefaultProbabilityTermStructure > referenceCurve | ( | ) | const |
Definition at line 85 of file spreadedsurvivalprobabilitytermstructure.cpp.
|
overrideprivate |
Definition at line 45 of file spreadedsurvivalprobabilitytermstructure.cpp.
|
overrideprivate |
Definition at line 56 of file spreadedsurvivalprobabilitytermstructure.cpp.
|
overrideprivate |
Definition at line 40 of file spreadedsurvivalprobabilitytermstructure.cpp.
|
private |
Definition at line 59 of file spreadedsurvivalprobabilitytermstructure.hpp.
|
private |
Definition at line 60 of file spreadedsurvivalprobabilitytermstructure.hpp.
|
private |
Definition at line 61 of file spreadedsurvivalprobabilitytermstructure.hpp.
|
mutableprivate |
Definition at line 62 of file spreadedsurvivalprobabilitytermstructure.hpp.
|
private |
Definition at line 63 of file spreadedsurvivalprobabilitytermstructure.hpp.
|
private |
Definition at line 64 of file spreadedsurvivalprobabilitytermstructure.hpp.