cluster_roi
cluster_roi copied to clipboard
what's the rank function used in make_local_connectivity_scorr.py
eg. in def indx_3dto1d(idx, sz): if (rank(idx) == 1): idx1 = idx[0] * prod(sz[1:3]) + idx[1] * sz[2] + idx[2] else: idx1 = idx[:, 0] * prod(sz[1:3]) + idx[:, 1] * sz[2] + idx[:, 2] return idx1
what's the rank method used?
To anyone who might stumble upon this:
The rank here is calculating the matrix rank, which post python3 & numpy version (can't recall which one) is calculated with:
numpy.linalg.matrix_rank