View source: R/hrf_smoothing_kernel.R
hrf_smoothing_kernel | R Documentation |
This function computes a temporal similarity matrix from a series of hemodynamic response functions.
hrf_smoothing_kernel(
len,
TR = 2,
form = onset ~ trialwise(),
buffer_scans = 3L,
normalise = TRUE,
method = c("gram", "cosine")
)
len |
The number of scans. |
TR |
The repetition time (default is 2 seconds). |
form |
the |
buffer_scans |
The number of scans to buffer before and after the event. |
normalise |
Whether to normalise the kernel. |
method |
The method to use for computing the kernel. |
a smoothing matrix
form <- onsets ~ trialwise(basis="gaussian")
sk <- hrf_smoothing_kernel(100, TR=1.5, form)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.