Generate a trapezoidal response function.
gen_trap_rf(
onset,
duration,
trial_type,
mrs_data,
rise_t = 0,
fall_t = 0,
smo_sigma = NULL,
match_tr = TRUE,
dt = 0.01,
normalise = TRUE
)
stimulus onset in seconds.
stimulus duration in seconds.
string label for the stimulus.
mrs_data object for timing information.
rise time of the trapezoid in seconds.
fall time of the trapezoid in seconds
standard deviation of Gaussian smoothing kernel in seconds. Set to NULL to disable (default behavior).
match the output to the input mrs_data.
timing resolution for internal calculations.
normalise the response function to have a maximum value of one.
trapezoidal response function.