pySPFM._solvers.debiasing.debiasing_block

pySPFM._solvers.debiasing.debiasing_block#

debiasing_block(hrf, y, estimates_matrix, n_jobs=4, dist=2)[source]#

Voxelwise block model debiasing workflow.

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.

  • y ((T x S) ndarray) – Matrix with fMRI data provided to pySPFM.

  • estimates_matrix ((T x S) ndarray) – Matrix containing the non-zero coefficients selected as neuronal-related.

  • n_jobs (int, optional) – Number of jobs to run in parallel, by default 4

  • dist (int, optional) – Minimum number of TRs in between of the peaks found, by default 2

Returns:

beta_out (ndarray) – Debiased activity-inducing signal obtained from estimated innovation signal.