brainconn.centrality
.participation_coef_sign¶
-
participation_coef_sign
(W, ci)[source]¶ Participation coefficient is a measure of diversity of intermodular connections of individual nodes.
Parameters: - W (NxN
numpy.ndarray
) – undirected connection matrix with positive and negative weights - ci (Nx1
numpy.ndarray
) – community affiliation vector
Returns: - Ppos (Nx1
numpy.ndarray
) – participation coefficient from positive weights - Pneg (Nx1
numpy.ndarray
) – participation coefficient from negative weights
- W (NxN