Correlation to covariance matrix
covm = CL_cor2cov(corm, sd)
Computes the covariance matrix from the correlation matrix and the standard deviation vector.
The covariance matrix is defined as follows:
- covm(i,i) = sd(i)^2
- covm(i,j) = corm(i,j) * sd(i) * sd(j)
Notes:
- The correlation matrix should be symetrical (not checked).
- An error is raised if one diagonal term is not 1.
- An error is raised if one standard deviation value is not positive.
Correlation matrix (NxNxK)
Standard deviation vector (NxK)
Covariance matrix (NxNxK)
CNES - DCT/SB