Note
This page is a reference documentation. It only explains the function signature, and not how to use it. Please refer to the user guide for the big picture.
nilearn.glm.first_level.spm_hrf#
- nilearn.glm.first_level.spm_hrf(tr, oversampling=50, time_length=32.0, onset=0.0)[source]#
-
- Parameters:
- trfloat
Repetition time, in seconds (sampling period).
- oversamplingint, default=50
Temporal oversampling factor.
- time_lengthfloat, default=32
HRF kernel length, in seconds.
- onsetfloat, default=0
HRF onset time, in seconds.
- Returns:
- hrfarray of shape(length / tr * oversampling, dtype=float)
HRF sampling on the oversampled time grid