brainconn.reference
.randmio_und_signed¶
-
randmio_und_signed
(R, itr)[source]¶ This function randomizes an undirected weighted network with positive and negative weights, while simultaneously preserving the degree distribution of positive and negative weights. The function does not preserve the strength distribution in weighted networks.
Parameters: - W (NxN
numpy.ndarray
) – undirected binary/weighted connection matrix - itr (int) – rewiring parameter. Each edge is rewired approximately itr times.
Returns: R – randomized network
Return type: NxN
numpy.ndarray
- W (NxN