netneurotools.metrics.network_pearsonr_pairwise

netneurotools.metrics.network_pearsonr_pairwise(annot_mat, weight)[source]

Calculate pairwise network correlation between rows of annot_mat.

Warning

Test before use.

Parameters:
  • annot_mat ((N, D) array_like) – Input matrix

  • weight ((D, D) array_like) – Weight matrix. Diagonal elements should be 1.

Returns:

corr_mat – Pairwise network correlation matrix

Return type:

(N, N) numpy.ndarray

Notes

This is a faster version of netneurotools.stats.network_pearsonr() for calculating pairwise network correlation between rows of annot_mat. Check netneurotools.stats.network_pearsonr() for details.

See also

netneurotools.stats.network_pearsonr