powered by
Calculate the HRF from a time vector and parameters. Optionally compute the first or second derivative of the HRF instead.
HRF(t, deriv = 0, a1 = 6, b1 = 0.9, a2 = 12, b2 = 0.9, c = 0.35)
HRF vector (or dHRF, or d2HRF) corresponding to time
time vector
0 (default) for the HRF, 1 for the first derivative of the HRF, or 2 for the second derivative of the HRF.
0
1
2
delay of response. Default: 6
6
response dispersion. Default: 0.9
0.9
delay of undershoot. Default: 12
12
dispersion of undershoot. Default: 0.9
scale of undershoot. Default: 0.35
0.35
downsample <- 100 HRF(seq(0, 30, by=1/downsample))
Run the code above in your browser using DataLab