brainconn.similarity.matching_ind

matching_ind(CIJ)[source]

For any two nodes u and v, the matching index computes the amount of overlap in the connection patterns of u and v. Self-connections and u-v connections are ignored. The matching index is a symmetric quantity, similar to a correlation or a dot product.

Parameters:CIJ (NxN numpy.ndarray) – adjacency matrix
Returns:
  • Min (NxN numpy.ndarray) – matching index for incoming connections
  • Mout (NxN numpy.ndarray) – matching index for outgoing connections
  • Mall (NxN numpy.ndarray) – matching index for all connections

Notes

Does not use self- or cross connections for comparison. Does not use connections that are not present in BOTH u and v. All output matrices are calculated for upper triangular only.