spey.helper_functions.covariance_to_correlation

spey.helper_functions.covariance_to_correlation#

spey.helper_functions.covariance_to_correlation(covariance_matrix: ndarray) ndarray[source]#

Convert covariance matrix into correlation matrix.

Parameters:

covariance_matrix (np.ndarray) – a real NxN matrix

Returns:

Correlation matrix

Return type:

np.ndarray