evaluate: evaluate a function over a sampling grid

View source: R/all_generic.R

evaluateR Documentation

evaluate a function over a sampling grid

Description

given an object to be evaluated and an input sample "grid", evaluate the object.

evalute a regressor function over a sampling grid

Usage

evaluate(x, grid, ...)

## S3 method for class 'regressor'
evaluate(x, grid, precision = 0.33, use_conv = FALSE, ...)

Arguments

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 evaluate.HRF

use_conv

use fast convolution approach

Examples

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)

bbuchsbaum/fmrireg documentation built on May 16, 2023, 10:56 a.m.