Computes various metrics from pupil data including:
Blink detection
Gaze on/off screen detection
Gap analysis
Gaze distance from screen center
Gaze variance
Blink rate
Blink duration
Blink time
get_confounds_for_step(pupil_df, pupil_vec, screen_width, screen_height, hz)
A data frame containing confounds metrics for the current step
A data frame containing pupil data
A vector of pupil data for the current step
The screen width in pixels
The screen height in pixels
The sampling rate in Hz