Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ImpliedDefaultTermStructure Class Reference

#include <qle/termstructures/implieddefaulttermstructure.hpp>

+ Inheritance diagram for ImpliedDefaultTermStructure:
+ Collaboration diagram for ImpliedDefaultTermStructure:

Public Member Functions

 ImpliedDefaultTermStructure (const Handle< DefaultProbabilityTermStructure > &t, const Date &referenceDate)
 
DayCounter dayCounter () const
 
Calendar calendar () const
 
Natural settlementDays () const
 
Date maxDate () const
 
const std::vector< Date > & jumpDates () const
 
const std::vector< Time > & jumpTimes () const
 

Private Member Functions

Probability survivalProbabilityImpl (Time t) const
 

Private Attributes

Handle< DefaultProbabilityTermStructure > t_
 
Real timeOffset_
 

Detailed Description

Definition at line 31 of file implieddefaulttermstructure.hpp.

Constructor & Destructor Documentation

◆ ImpliedDefaultTermStructure()

ImpliedDefaultTermStructure ( const Handle< DefaultProbabilityTermStructure > &  t,
const Date &  referenceDate 
)

Definition at line 33 of file implieddefaulttermstructure.hpp.

34 : SurvivalProbabilityStructure(referenceDate), t_(t) {
35 timeOffset_ = t->timeFromReference(referenceDate);
36 registerWith(t_);
37 enableExtrapolation(t_->allowsExtrapolation());
38 }
Handle< DefaultProbabilityTermStructure > t_

Member Function Documentation

◆ dayCounter()

DayCounter dayCounter ( ) const

Definition at line 39 of file implieddefaulttermstructure.hpp.

39{ return t_->dayCounter(); }

◆ calendar()

Calendar calendar ( ) const

Definition at line 40 of file implieddefaulttermstructure.hpp.

40{ return t_->calendar(); }

◆ settlementDays()

Natural settlementDays ( ) const

Definition at line 41 of file implieddefaulttermstructure.hpp.

41{ return t_->settlementDays(); }

◆ maxDate()

Date maxDate ( ) const

Definition at line 42 of file implieddefaulttermstructure.hpp.

42{ return t_->maxDate(); }

◆ jumpDates()

const std::vector< Date > & jumpDates ( ) const

Definition at line 43 of file implieddefaulttermstructure.hpp.

43{ return t_->jumpDates(); }

◆ jumpTimes()

const std::vector< Time > & jumpTimes ( ) const

Definition at line 44 of file implieddefaulttermstructure.hpp.

44{ return t_->jumpTimes(); }

◆ survivalProbabilityImpl()

Probability survivalProbabilityImpl ( Time  t) const
private

Definition at line 47 of file implieddefaulttermstructure.hpp.

47 {
48 return t_->survivalProbability(t + timeOffset_) / t_->survivalProbability(t);
49 }

Member Data Documentation

◆ t_

Handle<DefaultProbabilityTermStructure> t_
private

Definition at line 50 of file implieddefaulttermstructure.hpp.

◆ timeOffset_

Real timeOffset_
private

Definition at line 51 of file implieddefaulttermstructure.hpp.