brainconn.core
.score_wu¶
-
score_wu
(CIJ, s)[source]¶ The s-core is the largest subnetwork comprising nodes of strength at least s. This function computes the s-core for a given weighted undirected connection matrix. Computation is analogous to the more widely used k-core, but is based on node strengths instead of node degrees.
Parameters: - CIJ (NxN
numpy.ndarray
) – weighted undirected connection matrix - s (float) – level of s-core. Note that can take on any fractional value.
Returns: - CIJscore (NxN
numpy.ndarray
) – connection matrix of the s-core. This matrix contains only nodes with a strength of at least s. - sn (int) – size of s-core
- CIJ (NxN