HRF-class: HRF Constructor Function

HRFR Documentation

HRF Constructor Function

Description

The HRF function creates an object representing a hemodynamic response function (HRF). It is a class constructor for HRFs.

Usage

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)

Arguments

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.

Value

An HRF object with the specified properties.

Functions

  • 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

Examples

hrf <- HRF(hrf_gamma, "gamma", nbasis=1, param_names=c("shape", "rate"))
resp <- evaluate(hrf, seq(0, 24, by=1))


bbuchsbaum/fmrireg documentation built on March 1, 2025, 11:20 a.m.