This function processes a single block of pupil data to extract epochs and optionally compute and apply baseline corrections. It handles the core epoching and baselining logic for a single block of data.
epoch_and_baseline_block(
x,
blk,
lab,
evs,
lims,
msg_s,
msg_e,
c_bline,
a_bline,
bline_type,
bline_evs,
bline_per,
hz,
verbose
)
A list containing epoch and baseline results
An object of class eyeris
derived from load_asc()
A list containing block metadata
Label for the epoch output
Events specification for epoching (character vector or list)
Time limits for epochs (numeric vector)
Start message string
End message string
Logical indicating whether to calculate baseline
Logical indicating whether to apply baseline correction
Type of baseline correction ("sub" or "div")
Events specification for baseline calculation
Baseline period specification
Sampling rate in Hz
A flag to indicate whether to print detailed logging messages
This function is called by the internal epoch_pupil()
function.