brainconn.similarity
.corr_flat_dir¶
-
corr_flat_dir
(a1, a2)[source]¶ Returns the correlation coefficient between two flattened adjacency matrices. Similarity metric for weighted matrices.
Parameters: - A1 (NxN
numpy.ndarray
) – directed matrix 1 - A2 (NxN
numpy.ndarray
) – directed matrix 2
Returns: r – Correlation coefficient describing edgewise similarity of a1 and a2
Return type: - A1 (NxN