
Audit GP3 pupil-latency estimator sensitivity
Source:R/pupil-latency-sensitivity.R
audit_gp3_pupil_latency_resolution.RdCompares a sustained-threshold onset and maximum-slope tangent onset while reporting estimator spread, sampling rate, robust baseline noise, and a latency-resolvability label. This is a QC/reporting diagnostic rather than a claim that any one estimator is universally correct.
Arguments
- time
Numeric sample times in seconds.
- pupil
Numeric pupil series.
- event_time
Nominal event time in seconds.
- baseline_window, search_window
Two-element windows relative to the event.
- direction
"constriction"or"dilation".- threshold_sigma
Multiples of robust baseline noise.
- sustain_ms
Required sustained threshold duration in milliseconds.