DefaultProbabilityTermStructure based on interpolation of hazard rates. More...
#include <qle/termstructures/interpolatedhazardratecurve.hpp>
Public Member Functions | |
InterpolatedHazardRateCurve (const std::vector< Date > &dates, const std::vector< Rate > &hazardRates, const DayCounter &dayCounter, const Calendar &cal=Calendar(), const std::vector< Handle< Quote > > &jumps=std::vector< Handle< Quote > >(), const std::vector< Date > &jumpDates=std::vector< Date >(), const Interpolator &interpolator=Interpolator(), const bool allowNegativeRates=false) | |
InterpolatedHazardRateCurve (const std::vector< Date > &dates, const std::vector< Rate > &hazardRates, const DayCounter &dayCounter, const Calendar &calendar, const Interpolator &interpolator, const bool allowNegativeRates=false) | |
InterpolatedHazardRateCurve (const std::vector< Date > &dates, const std::vector< Rate > &hazardRates, const DayCounter &dayCounter, const Interpolator &interpolator, const bool allowNegativeRates=false) | |
TermStructure interface | |
Date | maxDate () const override |
DefaultProbabilityTermStructure implementation | |
std::vector< Date > | dates_ |
bool | allowNegativeRates_ |
Real | hazardRateImpl (Time) const override |
Probability | survivalProbabilityImpl (Time) const override |
void | initialize () |
other inspectors | |
const std::vector< Time > & | times () const |
const std::vector< Date > & | dates () const |
const std::vector< Real > & | data () const |
const std::vector< Rate > & | hazardRates () const |
std::vector< std::pair< Date, Real > > | nodes () const |
InterpolatedHazardRateCurve (const DayCounter &, const std::vector< Handle< Quote > > &jumps=std::vector< Handle< Quote > >(), const std::vector< Date > &jumpDates=std::vector< Date >(), const Interpolator &interpolator=Interpolator(), const bool allowNegativeRates=false) | |
InterpolatedHazardRateCurve (const Date &referenceDate, const DayCounter &, const std::vector< Handle< Quote > > &jumps=std::vector< Handle< Quote > >(), const std::vector< Date > &jumpDates=std::vector< Date >(), const Interpolator &interpolator=Interpolator(), const bool allowNegativeRates=false) | |
InterpolatedHazardRateCurve (Natural settlementDays, const Calendar &, const DayCounter &, const std::vector< Handle< Quote > > &jumps=std::vector< Handle< Quote > >(), const std::vector< Date > &jumpDates=std::vector< Date >(), const Interpolator &interpolator=Interpolator(), const bool allowNegativeRates=false) | |
DefaultProbabilityTermStructure based on interpolation of hazard rates.
This is an exact copy of the QuantLib class, but with the option to disabled the check for non negative input hazard rates
Definition at line 60 of file interpolatedhazardratecurve.hpp.
InterpolatedHazardRateCurve | ( | const std::vector< Date > & | dates, |
const std::vector< Rate > & | hazardRates, | ||
const DayCounter & | dayCounter, | ||
const Calendar & | cal = Calendar() , |
||
const std::vector< Handle< Quote > > & | jumps = std::vector< Handle< Quote > >() , |
||
const std::vector< Date > & | jumpDates = std::vector< Date >() , |
||
const Interpolator & | interpolator = Interpolator() , |
||
const bool | allowNegativeRates = false |
||
) |
InterpolatedHazardRateCurve | ( | const std::vector< Date > & | dates, |
const std::vector< Rate > & | hazardRates, | ||
const DayCounter & | dayCounter, | ||
const Calendar & | calendar, | ||
const Interpolator & | interpolator, | ||
const bool | allowNegativeRates = false |
||
) |
InterpolatedHazardRateCurve | ( | const std::vector< Date > & | dates, |
const std::vector< Rate > & | hazardRates, | ||
const DayCounter & | dayCounter, | ||
const Interpolator & | interpolator, | ||
const bool | allowNegativeRates = false |
||
) |
|
protected |
|
protected |
|
protected |
|
override |
Definition at line 136 of file interpolatedhazardratecurve.hpp.
const std::vector< Time > & times |
Definition at line 142 of file interpolatedhazardratecurve.hpp.
const std::vector< Date > & dates |
Definition at line 148 of file interpolatedhazardratecurve.hpp.
const std::vector< Real > & data |
Definition at line 154 of file interpolatedhazardratecurve.hpp.
const std::vector< Rate > & hazardRates |
Definition at line 160 of file interpolatedhazardratecurve.hpp.
std::vector< std::pair< Date, Real > > nodes |
Definition at line 166 of file interpolatedhazardratecurve.hpp.
|
overrideprotected |
|
overrideprotected |
|
private |
Definition at line 285 of file interpolatedhazardratecurve.hpp.
|
mutableprotected |
Definition at line 126 of file interpolatedhazardratecurve.hpp.
|
private |
Definition at line 129 of file interpolatedhazardratecurve.hpp.