Extract saccades using an algorithm proposed by Nyström and Holmqvist (2010) doi:10.3758/BRM.42.1.188 .
Source:R/method_nh.R
method_nh.RdExtract saccades using an algorithm proposed by Nyström and Holmqvist (2010) doi:10.3758/BRM.42.1.188 .
Arguments
- x
Gaze x coordinate, _arbitrary units_ as threshold velocity is computed in units of standard deviation.
- y
Gaze y coordinate, _arbitrary units_ as threshold velocity is computed in units of standard deviation.
- vel
Velocity
data.framewith columnsx,y,amp.- acc
Acceleration
data.framewith 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 Nyström and Holmqvist (2010) for details on parameters and the rationale for default values.
nh_sg_filter_orderOrder of Savitzky-Golay filter. Defaults to2.nh_max_velocityMaximal physiologically plausible velocity in °/s. Defaults to1000.nh_max_accelerationMaximal physiologically plausible acceleration in °/s². Defaults to100000.nh_initial_velocity_thresholdInitial velocity threshold in °/s. Defaults to100.