hemolearn.utils.sort_by_expl_var

hemolearn.utils.sort_by_expl_var(u, z, v, hrf_rois)

Sorted the temporal the spatial maps and the associated activation by explained variance.

Parameters
uarray, shape (n_atoms, n_voxels), spatial maps
zarray, shape (n_atoms, n_times_valid), temporal components
varray, shape (n_hrf_rois, n_times_atom), HRFs
hrf_roisdict (key: ROIs labels, value: indices of voxels of the ROI)

atlas HRF