brainconn.distance
.cycprob¶
-
cycprob
(Pq)[source]¶ Cycles are paths which begin and end at the same node. Cycle probability for path length d, is the fraction of all paths of length d-1 that may be extended to form cycles of length d.
Parameters: Pq (NxNxQ numpy.ndarray
) – Path matrix with Pq[i,j,q] = number of paths from i to j of length q. Produced by findpaths()Returns: - fcyc (Qx1
numpy.ndarray
) – fraction of all paths that are cycles for each path length q - pcyc (Qx1
numpy.ndarray
) – probability that a non-cyclic path of length q-1 can be extended to form a cycle of length q for each path length q
- fcyc (Qx1