QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
|
Covariance decomposition into correlation and variances. More...
#include <getcovariance.hpp>
Public Member Functions | |
CovarianceDecomposition (const Matrix &covarianceMatrix, Real tolerance=1.0e-12) | |
const Array & | variances () const |
const Array & | standardDeviations () const |
const Matrix & | correlationMatrix () const |
Private Attributes | |
Array | variances_ |
Array | stdDevs_ |
Matrix | correlationMatrix_ |
Covariance decomposition into correlation and variances.
Extracts the correlation matrix and the vector of variances out of the input covariance matrix.
Note that only the lower symmetric part of the covariance matrix is used.
Definition at line 95 of file getcovariance.hpp.
CovarianceDecomposition | ( | const Matrix & | covarianceMatrix, |
Real | tolerance = 1.0e-12 |
||
) |
Definition at line 24 of file getcovariance.cpp.
const Array & variances | ( | ) | const |
returns the variances Array
Definition at line 102 of file getcovariance.hpp.
const Array & standardDeviations | ( | ) | const |
returns the standard deviations Array
Definition at line 104 of file getcovariance.hpp.
const Matrix & correlationMatrix | ( | ) | const |
returns the correlation matrix
Definition at line 106 of file getcovariance.hpp.
|
private |
Definition at line 108 of file getcovariance.hpp.
|
private |
Definition at line 108 of file getcovariance.hpp.
|
private |
Definition at line 109 of file getcovariance.hpp.