brainconn.degree
.strengths_dir¶
-
strengths_dir
(CIJ)[source]¶ Node strength is the sum of weights of links connected to the node. The instrength is the sum of inward link weights and the outstrength is the sum of outward link weights.
Parameters: CIJ (NxN numpy.ndarray
) – directed weighted connection matrixReturns: - is (Nx1
numpy.ndarray
) – node in-strength - os (Nx1
numpy.ndarray
) – node out-strength - str (Nx1
numpy.ndarray
) – node strength (in-strength + out-strength)
Notes
Inputs are assumed to be on the columns of the CIJ matrix.
- is (Nx1