Public Member Functions | |
InterpolatedBaseCorrelationTermStructure (Natural settlementDays, const Calendar &cal, BusinessDayConvention bdc, const std::vector< Period > &tenors, const std::vector< Real > &detachmentPoints, const std::vector< std::vector< Handle< Quote >>> &baseCorrelations, const DayCounter &dc=DayCounter(), const Date &startDate=Date(), boost::optional< DateGeneration::Rule > rule=boost::none, Interpolator interpolator=Interpolator()) | |
Observer interface | |
void | update () override |
Public Member Functions inherited from BaseCorrelationTermStructure | |
BaseCorrelationTermStructure (const Date &referenceDate, const Calendar &cal, BusinessDayConvention bdc, const std::vector< Period > &tenors, const std::vector< double > &detachmentPoints, const DayCounter &dc=DayCounter(), const Date &startDate=Date(), boost::optional< DateGeneration::Rule > rule=boost::none) | |
BaseCorrelationTermStructure (Natural settlementDays, const Calendar &cal, BusinessDayConvention bdc, const std::vector< Period > &tenors, const std::vector< double > &detachmentPoints, const DayCounter &dc=DayCounter(), const Date &startDate=Date(), boost::optional< DateGeneration::Rule > rule=boost::none) | |
virtual Date | maxDate () const override |
virtual Time | maxTime () const override |
virtual Time | minTime () const override |
The minimum time for which the curve can return values. | |
virtual double | minDetachmentPoint () const |
virtual double | maxDetachmentPoint () const |
std::vector< double > | times () const |
std::vector< double > | detachmentPoints () const |
std::vector< Date > | dates () const |
BusinessDayConvention | businessDayConvention () const |
Date | startDate () const |
boost::optional< DateGeneration::Rule > | rule () const |
Public Member Functions inherited from CorrelationTermStructure | |
CorrelationTermStructure (const DayCounter &dc=DayCounter()) | |
CorrelationTermStructure (const Date &referenceDate, const Calendar &cal=Calendar(), const DayCounter &dc=DayCounter()) | |
CorrelationTermStructure (Natural settlementDays, const Calendar &cal, const DayCounter &dc=DayCounter()) | |
Real | correlation (Time t, Real strike=Null< Real >(), bool extrapolate=false) const |
Real | correlation (const Date &d, Real strike=Null< Real >(), bool extrapolate=false) const |
CorrelationTermStructure implementation | |
std::vector< std::vector< Handle< Quote > > > | quotes_ |
Matrix | data_ |
Real | correlationImpl (Time t, Real detachmentPoint) const override |
Correlation calculation. | |
Additional Inherited Members | |
Protected Member Functions inherited from BaseCorrelationTermStructure | |
virtual void | checkRange (Time t, Real strike, bool extrapolate) const override |
Extra time range check for minimum time, then calls TermStructure::checkRange. | |
Calculations | |
This method must be implemented in derived classes to perform the actual calculations. | |
Protected Attributes inherited from BaseCorrelationTermStructure | |
std::vector< Period > | tenors_ |
std::vector< double > | detachmentPoints_ |
std::vector< Date > | dates_ |
std::vector< double > | times_ |