diff_ek: Differentiate x and y and compute change amplitude via an...

View source: R/diff_ek.R

diff_ekR Documentation

Differentiate x and y and compute change amplitude via an algorithm proposed by Engbert & Kliegl (2003)

Description

Differentiate x and y and compute change amplitude via an algorithm proposed by Engbert & Kliegl (2003)

Usage

diff_ek(x, y, trial, sample_rate, options = NULL)

Arguments

x

vector with x coordinates in degrees of visual angle

y

vector with y coordinates in degrees of visual angle

trial

vector with trial index

sample_rate

sample rate in Hz

options

List with method specific options, see Details.

Details

Method options, please refer to Engbert & Kliegl (2003) for details on parameters and the rationale for default values.

  • ek_velocity_time_window Time window for velocity computation in milliseconds. Defaults to 20 ms.

Value

data.frame with columns x, y, and amp

See Also

compute_velocity_ek

Examples

diff_ek(rnorm(1000), rnorm(1000), rep(1, 1000), 250, list("ek_velocity_time_window" = 20))

saccadr documentation built on Sept. 8, 2023, 5:13 p.m.