brainconn.core.local_assortativity_wu_sign

local_assortativity_wu_sign(W)[source]

Local assortativity measures the extent to which nodes are connected to nodes of similar strength. Adapted from Thedchanamoorthy et al. 2014 formula to allowed weighted/signed networks.

Parameters:W (NxN numpy.ndarray) – undirected connection matrix with positive and negative weights
Returns:
  • loc_assort_pos (Nx1 numpy.ndarray) – local assortativity from positive weights
  • loc_assort_neg (Nx1 numpy.ndarray) – local assortativity from negative weights