dnnbrain.brain.algo module¶
- dnnbrain.brain.algo.convolve_hrf(X, onsets, durations, n_vol, tr, ops=100)¶
Convolve each X’s column iteratively with HRF and align with the timeline of BOLD signal
- Parameters
X (array) – Shape = (n_event, n_sample)
onsets (array_like) – In sec. size = n_event
durations (array_like) – In sec. size = n_event
n_vol (int) – The number of volumes of BOLD signal
tr (float) – Repeat time in second
ops (int) – Oversampling number per second
- Returns
X_hrfed – The result after convolution and alignment
- Return type
array