Skip to main content

Module hrf

Module hrf 

Source
Expand description

Hemodynamic response functions for fMRI statistical modeling.

Implements SPM and Glover canonical double-gamma HRFs with optional time and dispersion derivatives, plus FIR basis sets. Numerically validated against SciPy to <1e-10 relative error.

Enums§

HrfModel
Hemodynamic Response Function (HRF) model type.

Functions§

compute_regressor
Sample a condition as an event regressor (boxcar), then convolve with HRF.
glover_dispersion_derivative
Glover dispersion derivative.
glover_hrf
Glover canonical HRF.
glover_time_derivative
Glover time derivative.
hrf_kernel
Get HRF kernel(s) for a given model.
regressor_names
Regressor names for a given HRF model.
spm_dispersion_derivative
SPM dispersion derivative.
spm_hrf
SPM canonical HRF.
spm_time_derivative
SPM time derivative.