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.

nilearn.connectome.prec_to_partial#

nilearn.connectome.prec_to_partial(precision)[source]#

Return partial correlation matrix for a given precision matrix.

Parameters
precision2D numpy.ndarray

The input precision matrix.

Returns
partial_correlation2D numpy.ndarray

The 2D output partial correlation matrix.