Skip to contents

Create a Toeplitz matrix for hemodynamic response function (HRF) convolution.

Usage

hrf_toeplitz(hrf, time, len, sparse = FALSE)

Arguments

hrf

The hemodynamic response function.

time

A numeric vector representing the time points.

len

The length of the output Toeplitz matrix.

sparse

Logical, if TRUE, the output Toeplitz matrix is returned as a sparse matrix (default: FALSE).

Value

A Toeplitz matrix for HRF convolution.