Default probability term structure implied from a transition matrix. More...
#include <qle/termstructures/generatordefaulttermstructure.hpp>
Public Types | |
enum class | MatrixType { Transition , Generator } |
Public Member Functions | |
GeneratorDefaultProbabilityTermStructure (MatrixType matrixType, Matrix matrix, Size initialState, const Date &referenceDate, const Calendar &cal=NullCalendar(), const DayCounter &dc=Actual365Fixed()) | |
Constructor using a single (annual!) transition matrix or a generator matrix. More... | |
Date | maxDate () const override |
const Matrix & | transitionMatrix () const |
return the underlying annualised transition matrix More... | |
const Matrix & | generator () const |
Protected Member Functions | |
Probability | survivalProbabilityImpl (Time) const override |
Private Attributes | |
Size | initialState_ |
Matrix | transitionMatrix_ |
Matrix | generator_ |
Default probability term structure implied from a transition matrix.
This class uses a transition or generator matrix to imply cumulative survival probabilities depending on initial state.
Definition at line 41 of file generatordefaulttermstructure.hpp.
|
strong |
Enumerator | |
---|---|
Transition | |
Generator |
Definition at line 43 of file generatordefaulttermstructure.hpp.
GeneratorDefaultProbabilityTermStructure | ( | MatrixType | matrixType, |
Matrix | matrix, | ||
Size | initialState, | ||
const Date & | referenceDate, | ||
const Calendar & | cal = NullCalendar() , |
||
const DayCounter & | dc = Actual365Fixed() |
||
) |
Constructor using a single (annual!) transition matrix or a generator matrix.
Definition at line 30 of file generatordefaulttermstructure.cpp.
|
override |
Definition at line 48 of file generatordefaulttermstructure.hpp.
const Matrix & transitionMatrix | ( | ) | const |
return the underlying annualised transition matrix
Definition at line 51 of file generatordefaulttermstructure.hpp.
const Matrix & generator | ( | ) | const |
Definition at line 52 of file generatordefaulttermstructure.hpp.
|
overrideprotected |
Definition at line 50 of file generatordefaulttermstructure.cpp.
|
private |
Definition at line 58 of file generatordefaulttermstructure.hpp.
|
private |
Definition at line 59 of file generatordefaulttermstructure.hpp.
|
private |
Definition at line 60 of file generatordefaulttermstructure.hpp.