Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "ql/math/matrixutilities/getcovariance"

Index

Functions

getCovariance

  • Calculation of covariance from correlation and standard deviations

    Combines the correlation matrix and the vector of standard deviations to return the covariance matrix.

    Note that only the symmetric part of the correlation matrix is used. Also it is assumed that the diagonal member of the correlation matrix equals one.

    The correlation matrix must be symmetric with the diagonal members equal to one.

    test tested on know values and cross checked with CovarianceDecomposition

    Parameters

    Returns Matrix