hrf_half_cosine | R Documentation |
This function models a hemodynamic response function (HRF) using four half-period cosine basis functions. The HRF consists of an initial dip, a rise to peak, a fall and undershoot, and a recovery to the baseline.
hrf_half_cosine(t, h1 = 1, h2 = 5, h3 = 7, h4 = 7, f1 = 0, f2 = 0)
t |
A vector of time values. |
h1 |
Duration of the initial dip in seconds. |
h2 |
Duration of the rise to peak in seconds. |
h3 |
Duration of the fall and undershoot in seconds. |
h4 |
Duration of the recovery to baseline in seconds. |
f1 |
Height of the starting point. |
f2 |
Height of the end point. |
A vector of HRF values corresponding to the input time values.
Woolrich, M. W., Behrens, T. E., & Smith, S. M. (2004). Constrained linear basis sets for HRF modelling using Variational Bayes. NeuroImage, 21(4), 1748-1761.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.