Note

This page is a reference documentation. It only explains the function signature, and not how to use it. Please refer to the user guide for the big picture.

8.1.7. nilearn.connectome.cov_to_corr

nilearn.connectome.cov_to_corr(covariance)

Return correlation matrix for a given covariance matrix.

Parameters:

covariance : 2D numpy.ndarray

The input covariance matrix.

Returns:

correlation : 2D numpy.ndarray

The ouput correlation matrix.