pySPFM._solvers.debiasing.group_hrf#
- group_hrf(hrf, non_zero_idxs, group_dist=3)[source]#
Group HRFs based on the distance between non-zero coefficients.
- Parameters:
hrf ((E x T) ndarray) – Matrix containing shifted HRFs in its columns. E stands for the number of volumes times the number of echo-times.
non_zero_idxs ((T) ndarray) – Array containing the indexes of the non-zero coefficients.
group_dist (int, optional) – Maximum distance between non-zero coefficients to be considered as part of the same group, by default 3
- Returns:
hrf_out ((E x T) ndarray) – Matrix containing shifted HRFs in its columns. E stands for the number of volumes times the number of echo-times.
new_idxs ((T) ndarray) – Array containing the indexes of the non-zero coefficients.