evaluate | R Documentation |
given an object to be evaluated and an input sample "grid", evaluate the object.
evalute a regressor function over a sampling grid
evaluate(x, grid, ...)
## S3 method for class 'regressor'
evaluate(x, grid, precision = 0.33, use_conv = FALSE, ...)
x |
the object to evaluate |
grid |
the sampling grid. A vector of real values in seconds. |
... |
extra args |
precision |
the sampling precision for the hrf. This parameter is passed to |
use_conv |
use fast convolution approach |
frame <- sampling_frame(blocklens=100, TR=2)
reg <- regressor(onsets=c(10,20,35, 47,52, 68, 79,86), amp=runif(8), duration=runif(8)*3, hrf=HRF_SPMG1)
e1 = evaluate(reg, samples(frame))
e2 = evaluate(reg, samples(frame), use_conv=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.