#include <VolatilityAndCorrelation.h>
Inheritance diagram for Correlations:
If more are needed the calibration routines will have to be rewritten in trivial ways. Only Libor correlations are implemented. To cater to this case the correlations are indexed
with index base 1. All matrices, vectors respect this convention. The reason is that Libor is constant and is not evolved.
Definition at line 329 of file VolatilityAndCorrelation.h.
Public Member Functions | |
int | getType () const |
int | getDimension () const |
Correlations (int n, Real alpha, Real beta, Real r_oo, int correlationType) | |
virtual | ~Correlations () |
virtual void | setCorrelations ()=0 |
Real & | operator() (int i, int j) |
const UTRRealMatrix & | getCorrelationMatrix () const |
void | setParameters (Real _alpha, Real _beta, Real _r_oo) |
virtual std::ostream & | printSelf (std::ostream &os) const=0 |
std::string | correlationType () |
Static Public Member Functions | |
string | correlationType (int type) |
Correlations * | sample (int n, int type) |
Static Public Attributes | |
const int | JR = 0 |
const int | CS = 1 |
Protected Attributes | |
int | n |
int | corrType |
Real | alpha |
Real | beta |
Real | r_oo |
UTRRealMatrix | correlationMatrix |
|
Correlation matrix is allocated but not initialized Do this from the concrete subclasses.
|
|
Definition at line 366 of file VolatilityAndCorrelation.h. |
|
CS or JR. Definition at line 350 of file VolatilityAndCorrelation.h. |
|
"CS" or "JR", converts integer type ID to string. |
|
n: index range [1,n). Definition at line 356 of file VolatilityAndCorrelation.h. |
|
A sample correlation in dimension n of type = JR, CS. |
|
Update correlation matrix using the current parameters. Implemented in JR_Correlations, and CS_Correlations. |
|
Correlations for . |
|
The upper half of the correlation matrix Definition at line 385 of file VolatilityAndCorrelation.h. |
|
Sets the parameters (calibration). |
|
Message and fields. Implemented in JR_Correlations, and CS_Correlations. |
|
Converts integer type ID to string "JR", "CS". |
|
Index range [1,n). Definition at line 334 of file VolatilityAndCorrelation.h. |
|
The type of correlations JR, CS Definition at line 338 of file VolatilityAndCorrelation.h. |
|
Definition at line 340 of file VolatilityAndCorrelation.h. |
|
Definition at line 340 of file VolatilityAndCorrelation.h. |
|
Definition at line 340 of file VolatilityAndCorrelation.h. |
|
Definition at line 342 of file VolatilityAndCorrelation.h. |
|
Correlation type JR, CS. Definition at line 347 of file VolatilityAndCorrelation.h. |
|
Correlation type JR, CS. Definition at line 347 of file VolatilityAndCorrelation.h. |