Extract saccades using an algorithm proposed by Otero-Millan et al. (2014) doi:10.1167/14.2.18.
Source:R/method_om.R
method_om.Rd
Extract saccades using an algorithm proposed by Otero-Millan et al. (2014) doi:10.1167/14.2.18.
Arguments
- x
Gaze x coordinate, _arbitrary units_ as threshold velocity is computed in units of standard deviation.
- y
Gaze x coordinate, _arbitrary units_ as threshold velocity is computed in units of standard deviation.
- vel
Velocity
data.frame
with columnsx
,y
,amp
.- acc
Acceleration
data.frame
with columnsx
,y
,amp
.- sample_rate
Sample rate in Hz.
- trial
Trial id, so that trial borders are respected when computing velocity and saccades.
- options
Named list with method options. See details for further information.
Details
Method options, please refer to Otero-Millan et al. (2014) for details on parameters and the rationale for default values.
om_minimal_inter_peak_time_ms
Minimal inter-peak interval in milliseconds. Defaults to30
.om_maximal_peaks_per_second
Maximal allowed number of peaks per second. Defaults to5
.om_velocity_threshold_deg_per_sec
Threshold saccade velocity in °/s. Defaults to3
.om_pca_variance_threshold
Minimal variance explained by retained rotated components. Defaults to0.05
.