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.

7.1.7. nilearn.connectome.prec_to_partial

nilearn.connectome.prec_to_partial(precision)

Return partial correlation matrix for a given precision matrix.

Parameters:

precision : 2D numpy.ndarray

The input precision matrix.

Returns:

partial_correlation : 2D numpy.ndarray

The 2D ouput partial correlation matrix.