cluster_roi icon indicating copy to clipboard operation
cluster_roi copied to clipboard

what's the rank function used in make_local_connectivity_scorr.py

Open DasDominus opened this issue 4 years ago • 1 comments

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?

DasDominus avatar Jan 16 '21 18:01 DasDominus

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

DasDominus avatar Jan 16 '21 19:01 DasDominus