hrf_bspline: B-spline HRF (hemodynamic response function)

View source: R/hrf.R

hrf_bsplineR Documentation

B-spline HRF (hemodynamic response function)

Description

The hrf_bspline function computes the B-spline representation of an HRF (hemodynamic response function) at given time points t.

Usage

hrf_bspline(t, span = 20, N = 5, degree = 3)

Arguments

t

A vector of time points.

span

A numeric value representing the temporal window over which the basis set spans. Default value is 20.

N

An integer representing the number of basis functions. Default value is 5.

degree

An integer representing the degree of the spline. Default value is 3.

Value

A matrix representing the B-spline basis for the HRF at the given time points t.

See Also

Other hrf_functions: hrf_gamma(), hrf_gaussian(), hrf_inv_logit(), hrf_mexhat(), hrf_sine(), hrf_spmg1(), hrf_time()

Examples

# Compute the B-spline HRF representation for time points from 0 to 20 with 0.5 increments
hrfb <- hrf_bspline(seq(0, 20, by = .5), N = 4, degree = 2)

bbuchsbaum/fmrireg documentation built on May 16, 2023, 10:56 a.m.