HRF | R Documentation |
The HRF
function creates an object representing a hemodynamic response function (HRF). It is a class constructor for HRFs.
HRF(fun, name, nbasis = 1, span = 24, param_names = NULL)
HRF_GAMMA(t, shape = 6, rate = 1)
HRF_GAUSSIAN(t, mean = 6, sd = 2)
HRF_BSPLINE(t, span = 24, N = 5, degree = 3)
HRF_SPMG1(t, P1 = 5, P2 = 15, A1 = 0.0833)
HRF_SPMG2(t)
HRF_SPMG3(t)
fun |
A function representing the hemodynamic response, mapping from time to BOLD response. |
name |
A string specifying the name of the function. |
nbasis |
An integer representing the number of basis functions, e.g., the columnar dimension of the HRF. Default is 1. |
span |
A numeric value representing the span in seconds of the HRF. Default is 24. |
param_names |
A character vector containing the names of the parameters for the HRF function. |
An HRF object with the specified properties.
HRF_GAMMA()
: Gamma HRF function object
HRF_GAUSSIAN()
: Gaussian HRF function object
HRF_BSPLINE()
: BSpline HRF function object
HRF_SPMG1()
: SPMG1 HRF function object
HRF_SPMG2()
: SPMG1 HRF function object
HRF_SPMG3()
: SPMG1 HRF function object
hrf <- HRF(hrf_gamma, "gamma", nbasis=1, param_names=c("shape", "rate"))
resp <- evaluate(hrf, seq(0, 24, by=1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.