glmdenoise.fit_runs module

glmdenoise.fit_runs.fit_runs(data, design)[source]

Fits a least square of combined runs.

The matrix addition is equivalent to concatenating the list of data and the list of design and fit it all at once. However, this is more memory efficient.

Parameters:
  • {list} -- List of runs. Each run is an TR x voxel sized array (runs) –
  • {list} -- List of design matrices. Each design matrix (DM) – is an TR x predictor sizec array
Returns:

[array] – betas from fit