Generates an HRF object using B-spline basis functions with custom parameters.
This is the generator function that creates HRF objects with variable numbers
of basis functions, unlike the pre-defined HRF_BSPLINE which has 5 functions.
See also
HRF_objects for pre-defined HRF objects,
getHRF for a unified interface to create HRFs
Examples
# Create B-spline basis with 10 functions
custom_bs <- hrf_bspline_generator(nbasis = 10)
#> Warning: Parameters nbasis, degree, span are not arguments to function bspline and will be ignored
t <- seq(0, 24, by = 0.1)
response <- evaluate(custom_bs, t)
matplot(t, response, type = "l", main = "B-spline HRF with 10 basis functions")