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:
Returns:

r – Correlation coefficient describing edgewise similarity of a1 and a2

Return type:

float