DefaultProbabilityTermStructure based on interpolation of survival probability quotes. More...
#include <qle/termstructures/survivalprobabilitycurve.hpp>
Public Types | |
enum class | Extrapolation { flatFwd , flatZero } |
Public Member Functions | |
SurvivalProbabilityCurve (const std::vector< Date > &dates, const std::vector< Handle< Quote > > "es, const DayCounter &dayCounter, const Calendar &calendar=Calendar(), const std::vector< Handle< Quote > > &jumps=std::vector< Handle< Quote > >(), const std::vector< Date > &jumpDates=std::vector< Date >(), const Interpolator &interpolator=Interpolator(), const Extrapolation extrpolation=Extrapolation::flatFwd) | |
TermStructure interface | |
Date | maxDate () const override |
other inspectors | |
const std::vector< Time > & | times () const |
const std::vector< Date > & | dates () const |
const std::vector< Real > & | data () const |
const std::vector< Probability > & | survivalProbabilities () const |
const std::vector< Handle< Quote > > & | quotes () const |
std::vector< std::pair< Date, Real > > | nodes () const |
Private Member Functions | |
LazyObject interface | |
void | performCalculations () const override |
DefaultProbabilityTermStructure implementation | |
std::vector< Date > | dates_ |
std::vector< Handle< Quote > > | quotes_ |
Extrapolation | extrapolation_ |
Probability | survivalProbabilityImpl (Time) const override |
Real | defaultDensityImpl (Time t) const override |
Observer interface | |
void | update () override |
void | initialize () |
DefaultProbabilityTermStructure based on interpolation of survival probability quotes.
Definition at line 38 of file survivalprobabilitycurve.hpp.
|
strong |
Enumerator | |
---|---|
flatFwd | |
flatZero |
Definition at line 42 of file survivalprobabilitycurve.hpp.
SurvivalProbabilityCurve | ( | const std::vector< Date > & | dates, |
const std::vector< Handle< Quote > > & | quotes, | ||
const DayCounter & | dayCounter, | ||
const Calendar & | calendar = Calendar() , |
||
const std::vector< Handle< Quote > > & | jumps = std::vector<Handle<Quote>>() , |
||
const std::vector< Date > & | jumpDates = std::vector<Date>() , |
||
const Interpolator & | interpolator = Interpolator() , |
||
const Extrapolation | extrpolation = Extrapolation::flatFwd |
||
) |
Definition at line 139 of file survivalprobabilitycurve.hpp.
|
override |
Definition at line 85 of file survivalprobabilitycurve.hpp.
const std::vector< Time > & times |
Definition at line 87 of file survivalprobabilitycurve.hpp.
const std::vector< Date > & dates |
Definition at line 89 of file survivalprobabilitycurve.hpp.
const std::vector< Real > & data |
Definition at line 91 of file survivalprobabilitycurve.hpp.
const std::vector< Probability > & survivalProbabilities |
Definition at line 93 of file survivalprobabilitycurve.hpp.
const std::vector< Handle< Quote > > & quotes | ( | ) | const |
std::vector< std::pair< Date, Real > > nodes |
Definition at line 97 of file survivalprobabilitycurve.hpp.
|
override |
Definition at line 155 of file survivalprobabilitycurve.hpp.
|
private |
Definition at line 169 of file survivalprobabilitycurve.hpp.
|
overrideprivate |
Definition at line 160 of file survivalprobabilitycurve.hpp.
|
overrideprivate |
Definition at line 106 of file survivalprobabilitycurve.hpp.
|
overrideprivate |
Definition at line 122 of file survivalprobabilitycurve.hpp.
|
mutableprivate |
Definition at line 78 of file survivalprobabilitycurve.hpp.
|
private |
Definition at line 79 of file survivalprobabilitycurve.hpp.
|
private |
Definition at line 80 of file survivalprobabilitycurve.hpp.