Correlation term structure. More...
#include <qle/termstructures/correlationtermstructure.hpp>
Inheritance diagram for CorrelationTermStructure:
Collaboration diagram for CorrelationTermStructure:Public Member Functions | |
Constructors | |
| 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()) | |
Correlations | |
| 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 |
| virtual Time | minTime () const |
| The minimum time for which the curve can return values. More... | |
Protected Member Functions | |
Calculations | |
This method must be implemented in derived classes to perform the actual calculations. | |
| virtual Real | correlationImpl (Time t, Real strike) const =0 |
| Correlation calculation. More... | |
| virtual void | checkRange (Time t, Real strike, bool extrapolate) const |
| Extra time range check for minimum time, then calls TermStructure::checkRange. More... | |
Correlation term structure.
This abstract class defines the interface of concrete correlation term structures which will be derived from this one.
Definition at line 39 of file correlationtermstructure.hpp.
| CorrelationTermStructure | ( | const DayCounter & | dc = DayCounter() | ) |
Definition at line 25 of file correlationtermstructure.cpp.
| CorrelationTermStructure | ( | const Date & | referenceDate, |
| const Calendar & | cal = Calendar(), |
||
| const DayCounter & | dc = DayCounter() |
||
| ) |
Definition at line 27 of file correlationtermstructure.cpp.
| CorrelationTermStructure | ( | Natural | settlementDays, |
| const Calendar & | cal, | ||
| const DayCounter & | dc = DayCounter() |
||
| ) |
Definition at line 30 of file correlationtermstructure.cpp.
| Real correlation | ( | Time | t, |
| Real | strike = Null<Real>(), |
||
| bool | extrapolate = false |
||
| ) | const |
Definition at line 33 of file correlationtermstructure.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| Real correlation | ( | const Date & | d, |
| Real | strike = Null<Real>(), |
||
| bool | extrapolate = false |
||
| ) | const |
Definition at line 44 of file correlationtermstructure.cpp.
Here is the call graph for this function:
|
virtual |
The minimum time for which the curve can return values.
Reimplemented in BaseCorrelationTermStructure, SpreadedBaseCorrelationCurve, and SpreadedCorrelationCurve.
Definition at line 48 of file correlationtermstructure.cpp.
Here is the caller graph for this function:
|
protectedpure virtual |
Correlation calculation.
Implemented in InterpolatedBaseCorrelationTermStructure< Interpolator >, NegativeCorrelationTermStructure, SpreadedBaseCorrelationCurve, SpreadedCorrelationCurve, InterpolatedCorrelationCurve< Interpolator >, and FlatCorrelation.
Here is the caller graph for this function:
|
protectedvirtual |
Extra time range check for minimum time, then calls TermStructure::checkRange.
Reimplemented in BaseCorrelationTermStructure.
Definition at line 53 of file correlationtermstructure.cpp.
Here is the call graph for this function:
Here is the caller graph for this function: