Generates an HRF object using Fourier basis functions (sine and cosine pairs) with custom parameters.
Details
The Fourier basis uses alternating sine and cosine functions with increasing frequencies. This provides a smooth, periodic basis set that can capture oscillatory components in the HRF.
See also
HRF_objects for pre-defined HRF objects,
getHRF for a unified interface to create HRFs
Examples
# Create Fourier basis with 8 functions
custom_fourier <- hrf_fourier_generator(nbasis = 8)
#> Warning: Parameters nbasis, span are not arguments to function fourier and will be ignored
t <- seq(0, 24, by = 0.1)
response <- evaluate(custom_fourier, t)
matplot(t, response, type = "l", main = "Fourier HRF with 8 basis functions")