Combine HRF Basis with Coefficients
Source:R/all_generic.R, R/reconstruction_matrix-methods.R
reconstruction_matrix.RdCreate a new HRF by linearly weighting the basis functions of an existing HRF. This is useful for turning estimated basis coefficients into a single functional HRF.
S3 method for `HRF` objects that returns a matrix mapping basis coefficients to sampled HRF values at the provided time grid. For single-basis HRFs, this returns a one-column matrix. For multi-basis HRFs (e.g., SPMG2/SPMG3, FIR, B-spline), this returns a matrix with one column per basis function.
Usage
reconstruction_matrix(hrf, sframe, ...)
# S3 method for class 'HRF'
reconstruction_matrix(hrf, sframe, ...)Value
A numeric matrix with one column per basis function.
A numeric matrix of dimension `length(times) x nbasis(hrf)`.