The package implements the following methods
Each method has additional parameters that can be passed via the
options
argument of the extract_saccades()
function.
The algorithm labels a sample as a saccade if velocity, measured in units of its standard deviation (see below), exceeds a predefined threshold (defaults to \(6\)) and the duration of a super-threshold period exceeds a minimal duration (defaults to \(12\) milliseconds). This method makes no assumptions about velocity in the units of degrees per second and can be used on any data (e.g., where samples encode gaze in screen position units).
The standard deviation is computed following formula #2 in Engbert and Kliegl (2003) as
However, if the value is smaller than .Machine$double.eps
,
it is recomputed via a mean estimator
Only a monocular version of the algorithm is implemented with binocular saccades computed using overlapping votes from two eyes. For method details and rationale for default parameter values refer to Engbert and Kliegl (2003).
Parameters:
ek_velocity_threshold
Velocity threshold for saccade
detection in standard deviations. Defaults to \(6\).ek_sd_fun
Function used to compute standard deviation
for velocities. Defaults to sd_via_median_estimator()
that
implements formula #2 in Engbert and Kliegl
(2003). Can be replaced with sd()
,
mad()
, or a custom function.ek_minimal_duration_ms
Minimal duration of a saccade in
milliseconds. Defaults to \(12\).ek_minimal_separation_ms
A minimal required time gap
between saccades. Defaults to \(12\).The algorithm:
For method details and rationale for default parameter values refer to Otero-Millan et al. (2014).
Parameters:
om_minimal_inter_peak_time_ms
Minimal inter-peak
interval in milliseconds. Defaults to \(30\)om_maximal_peaks_per_second
Maximal allowed number of
peaks per second. Defaults to \(5\).om_velocity_threshold_deg_per_sec
Threshold saccade
velocity in °/s. Defaults to \(3\).om_pca_variance_threshold
Minimal variance explained by
retained rotated components. Defaults to \(0.05\).The algorithm:
For method details and rationale for default parameter values refer to Nyström and Holmqvist (2010).
Parameters:
nh_max_velocity
Maximal physiologically plausible
velocity in °/s. Defaults to 1000
.nh_max_acceleration
Maximal physiologically plausible
acceleration in °/s². Defaults to 100000
.nh_initial_velocity_threshold
Initial velocity
threshold in °/s. Defaults to 100
.