
Internal function to remove transient artifacts from pupil data
Source:R/pipeline-detransient.R
detransient_pupil.RdThis function implements transient artifact removal by
identifying and removing samples that exceed a speed-based threshold.
The threshold is computed based on the constant n, which defaults to
the value 16.
This function is called by the exposed wrapper detransient().
Arguments
- x
A data frame containing pupil data with columns
time_secsand the previous operation's pupil column- prev_op
The name of the previous operation's pupil column
- n
The constant used to compute the median absolute deviation (MAD) threshold. Defaults to
16- mad_thresh
The threshold used to identify transient artifacts. Defaults to
NULL