Package: fmrihrf 0.3.0

Bradley Buchsbaum

fmrihrf: Hemodynamic Response Functions for fMRI Data Analysis

Creates, manipulates, and evaluates hemodynamic response functions and event-related regressors for functional magnetic resonance imaging data analysis. Supports multiple basis sets including Canonical, Gamma, Gaussian, B-spline, and Fourier bases. Features decorators for time-shifting and blocking, and efficient convolution algorithms for regressor construction. Methods are based on standard fMRI analysis techniques as described in Jezzard et al. (2001, ISBN:9780192630711).

Authors:Bradley Buchsbaum [aut, cre]

fmrihrf_0.3.0.tar.gz
fmrihrf_0.3.0.tar.gz(r-4.7-arm64)fmrihrf_0.3.0.tar.gz(r-4.7-x86_64)fmrihrf_0.3.0.tar.gz(r-4.6-arm64)fmrihrf_0.3.0.tar.gz(r-4.6-x86_64)
fmrihrf_0.3.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
fmrihrf/json (API)
NEWS

# Install 'fmrihrf' in R:
install.packages('fmrihrf', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/bbuchsbaum/fmrihrf/issues

Pkgdown/docs site:https://bbuchsbaum.github.io

Uses libs:
  • openblas– Optimized BLAS
  • c++– GNU Standard C++ Library v3
  • openmp– GCC OpenMP (GOMP) support library

On CRAN:

Conda:

openblascppopenmp

5.93 score 5 packages 95 scripts 490 downloads 70 exports 17 dependencies

Last updated from:4deebccbc0. Checks:6 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-arm64OK164
linux-devel-x86_64OK160
source / vignettesOK246
linux-release-arm64OK154
linux-release-x86_64OK155
wasm-releaseOK126

Exports:acquisition_onsetsamplitudesas_hrfbind_basisblock_hrfblockidsblocklensderivdurationsempirical_hrfevaluategen_empirical_hrfgen_hrfgen_hrf_blockedgen_hrf_laggedgen_hrf_librarygen_hrf_setgetHRFglobal_onsetsHRFhrf_basis_lwuhrf_blockedhrf_boxcarhrf_bsplineHRF_BSPLINEhrf_bspline_generatorhrf_daguerre_generatorHRF_FIRhrf_fir_generatorhrf_fourierhrf_fourier_generatorhrf_from_coefficientshrf_gammaHRF_GAMMAhrf_gaussianHRF_GAUSSIANhrf_half_cosinehrf_inv_logithrf_laggedhrf_libraryhrf_lwuhrf_mexhathrf_sethrf_sinehrf_spmg1HRF_SPMG1HRF_SPMG2HRF_SPMG3hrf_tent_generatorhrf_timehrf_toeplitzhrf_weightedlag_hrflist_available_hrfsmake_hrfnbasisneural_inputnormalise_hrfonsetspenalty_matrixplot_hrfsplot_regressorsreconstruction_matrixregressorregressor_designregressor_setsamplessampling_frameshiftsingle_trial_regressor

Dependencies:assertthatcachemclifastmapgluelatticelifecyclemagrittrMatrixmemoisenumDerivpracmapurrrRcppRcppArmadillorlangvctrs

Advanced HRF Modeling and Design

Rendered froma_04_advanced_modeling.Rmdusingknitr::rmarkdownon May 27 2026.

Last update: 2026-03-28
Started: 2025-09-16

Building fMRI Regressors

Rendered froma_02_regressor.Rmdusingknitr::rmarkdownon May 27 2026.

Last update: 2026-03-28
Started: 2025-09-16

Hemodynamic Response Functions

Rendered froma_01_hemodynamic_response.Rmdusingknitr::rmarkdownon May 27 2026.

Last update: 2026-03-28
Started: 2025-09-16

HRF Generators

Rendered froma_03_hrf_generators.Rmdusingknitr::rmarkdownon May 27 2026.

Last update: 2026-03-28
Started: 2025-09-16

Readme and manuals

Help Manual

Help pageTopics
Get fMRI Acquisition Onset Timesacquisition_onsets acquisition_onsets.sampling_frame
Get amplitudes from an objectamplitudes amplitudes.Reg
Create a Blocked HRF Objectblock_hrf
Get block identifiersblockids blockids.sampling_frame
Get block lengthsblocklens blocklens.sampling_frame
Compute derivatives of HRF functionsderiv
Default derivative method for HRF objectsderiv.HRF deriv.SPMG1_HRF deriv.SPMG2_HRF deriv.SPMG3_HRF
Get durations of an objectdurations durations.Reg
Evaluate a regressor object over a time gridevaluate evaluate.Reg
Evaluate an HRF Objectevaluate.HRF
Construct an HRF Instance using Decoratorsgen_hrf
Generate a Blocked HRF Functiongen_hrf_blocked hrf_blocked
Generate a Lagged HRF Functiongen_hrf_lagged hrf_lagged
Get HRF by NamegetHRF
Convert onsets to global timingglobal_onsets global_onsets.sampling_frame
HRF Constructor FunctionHRF
LWU HRF Basis for Taylor Expansionhrf_basis_lwu
Boxcar HRF (No Hemodynamic Delay)hrf_boxcar
B-spline HRF (hemodynamic response function)hrf_bspline
Create B-spline HRF Basis Sethrf_bspline_generator
Create Daguerre HRF Basis Sethrf_daguerre_generator
Create FIR HRF Basis Sethrf_fir_generator
Fourier basis for HRF modelinghrf_fourier
Create Fourier HRF Basis Sethrf_fourier_generator
Combine HRF Basis with Coefficientshrf_from_coefficients hrf_from_coefficients.HRF
Gamma HRF (hemodynamic response function)hrf_gamma
Gaussian HRF (hemodynamic response function)hrf_gaussian
Half-cosine HRFhrf_half_cosine
hrf_inv_logithrf_inv_logit
Lag-Width-Undershoot (LWU) HRFhrf_lwu
Mexican Hat HRF (hemodynamic response function)hrf_mexhat
Pre-defined Hemodynamic Response Function ObjectsHRF_BSPLINE HRF_FIR HRF_GAMMA HRF_GAUSSIAN HRF_objects HRF_SPMG1 HRF_SPMG2 HRF_SPMG3
hrf_sinehrf_sine
hrf_spmg1hrf_spmg1
Create Tent HRF Basis Sethrf_tent_generator
HRF (hemodynamic response function) as a linear function of timehrf_time
HRF Toeplitz Matrixhrf_toeplitz
Weighted HRF (No Hemodynamic Delay)hrf_weighted
Lag an HRF Objectlag_hrf
List all available hemodynamic response functions (HRFs)list_available_hrfs
Create an HRF from a basis specificationmake_hrf
Number of basis functionsnbasis nbasis.HRF nbasis.Reg
Generate Neural Input Function from Event Timingneural_input neural_input.Reg
Normalise an HRF Objectnormalise_hrf
Get event onsets from an objectonsets onsets.Reg
Generate penalty matrix for regularizationpenalty_matrix penalty_matrix.BSpline_HRF penalty_matrix.Daguerre_HRF penalty_matrix.FIR_HRF penalty_matrix.Fourier_HRF penalty_matrix.HRF penalty_matrix.SPMG2_HRF penalty_matrix.SPMG3_HRF penalty_matrix.Tent_HRF
Compare Multiple HRF Functionsplot_hrfs
Compare Multiple Regressor Objectsplot_regressors
Plot an HRF Objectplot.HRF
Plot a Regressor Objectplot.Reg
Print an HRF Objectprint.HRF
Print method for Reg objectsprint.Reg print.sampling_frame
Combine HRF Basis with Coefficientsreconstruction_matrix reconstruction_matrix.HRF
Construct a Regressor Objectregressor
Build a Design Matrix from Block-wise Onsetsregressor_design
Construct a Regressor Setevaluate.RegSet regressor_set
Get sample acquisition timessamples samples.sampling_frame
A 'sampling_frame' describes the block structure and temporal sampling of an fMRI paradigm.sampling_frame
Shift a time series objectshift shift.Reg
Create a single trial regressorsingle_trial_regressor