evaluate.hrfspec | R Documentation |
This function evaluates a hemodynamic response function (HRF) specified by an hrfspec object for a given set of time points (grid) and other parameters. It is a wrapper function that calls the evaluate.HRF function with the HRF function contained in the hrfspec object.
## S3 method for class 'hrfspec'
evaluate(x, grid, amplitude = 1, duration = 0, precision = 0.1, ...)
x |
The hrfspec object containing the HRF function. |
grid |
A vector of time points. |
amplitude |
The scaling value for the event (default: 1). |
duration |
The duration of the event (default: 0). |
precision |
The temporal resolution used for computing summed responses when duration > 0 (default: 0.1). |
... |
Additional arguments to be passed to the evaluate.HRF function. |
A vector of HRF values at the specified time points.
hrf_spec <- hrfspec(hrf = HRF_SPMG1)
hrf_values <- evaluate(hrfspec, grid=seq(0,20,by=1.5), duration=2, precision=.1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.