Event-related analysis
Calculate the FIR (finite impulse response) HRF, according to [Burock2000]
Parameters : | timeseries : float array
design : int array
|
---|---|
Returns : | HRF: float array :
|
Notes
Implements equation 4 in Burock(2000):
\hat{h} = (X^T X)^{-1} X^T y
M.A. Burock and A.M.Dale (2000). Estimation and Detection of Event-Related fMRI Signals with Temporally Correlated Noise: A Statistically Efficient and Unbiased Approach. Human Brain Mapping, 11:249-260
Calculates the event related timeseries, using a cross-correlation in the frequency domain.
Parameters : | tseries: float array :
events: float array :
t_before: float :
t_after: float :
Fs: float :
|
---|---|
Returns : | xcorr: float array :
|
Calculates the z-scored event related timeseries, using a cross-correlation in the frequency domain.
Parameters : | tseries: float array :
events: float array :
t_before: float :
t_after: float :
Fs: float :
|
---|---|
Returns : | xcorr: float array :
|