create_hrf_object: Create HRF Object from Specification

View source: R/fmridsl_builder.R

create_hrf_objectR Documentation

Create HRF Object from Specification

Description

Create HRF Object from Specification

Usage

create_hrf_object(hrf_spec)

Arguments

hrf_spec

A list containing HRF specifications:

  • type: Type of HRF (e.g., "HRF_SPMG1", "HRF_GAUSSIAN")

  • parameters: Optional list of parameters specific to the HRF type

  • definition: Required for custom HRFs, name of function

Value

An HRF object

Examples

# Basic canonical HRF
create_hrf_object(list(type = "HRF_SPMG1"))

# Gaussian HRF with custom parameters
create_hrf_object(list(
  type = "HRF_GAUSSIAN",
  parameters = list(mean = 5, sd = 1)
))


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