brainconn.similarity
.corr_flat_und¶
-
corr_flat_und
(a1, a2)[source]¶ Returns the correlation coefficient between two flattened adjacency matrices. Only the upper triangular part is used to avoid double counting undirected matrices. Similarity metric for weighted matrices.
Parameters: - A1 (NxN
numpy.ndarray
) – undirected matrix 1 - A2 (NxN
numpy.ndarray
) – undirected matrix 2
Returns: r – Correlation coefficient describing edgewise similarity of a1 and a2
Return type: - A1 (NxN