Generate trapezoidal regressors.
gen_trap_reg(
onset,
duration,
trial_type = NULL,
mrs_data = NULL,
tr = NULL,
Ndyns = NULL,
Ntrans = NULL,
rise_t = 0,
fall_t = 0,
exp_fall = FALSE,
exp_fall_power = 1,
smo_sigma = NULL,
match_tr = TRUE,
dt = 0.01,
normalise = FALSE
)
stimulus onset in seconds.
stimulus duration in seconds.
string label for the stimulus.
mrs_data object for timing information.
repetition time.
number of dynamic scans stored, potentially less than Ntrans if block averaging has been performed.
number of dynamic scans acquired.
time to reach a plateau from baseline in seconds.
time to fall from plateau level back to baseline in seconds.
model an exponential fall instead of linear.
exponential fall power.
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 regressor data frame.