Computation of the canonical HRF used in fMRIstat, both the 2-term spectral approximation and the Taylor series approximation, to a shifted version of the canonical Glover HRF.
PCA decomposition of symbolic HRF shifted over time
Perform a PCA expansion of a symbolic HRF, time shifted over the values in delta, returning the first ncomp components.
This smooths out the HRF as compared to using a Taylor series approximation.
Parameters : | hrf2decompose : sympy expression
time : None or np.ndarray, optional
delta : None or np.ndarray, optional
ncomp : int, optional
|
---|---|
Returns : | hrf : [sympy expressions]
approx : :
|
A Taylor series approximation of an HRF shifted by times delta
Returns original HRF and gradient of HRF
Parameters : | hrf2decompose : sympy expression
time : None or np.ndarray, optional
delta : None or np.ndarray, optional
|
---|---|
Returns : | hrf : [sympy expressions]
approx : :
|
References
Liao, C.H., Worsley, K.J., Poline, J-B., Aston, J.A.D., Duncan, G.H., Evans, A.C. (2002). ‘Estimating the delay of the response in fMRI data.’ NeuroImage, 16:593-606.