Learn R Programming

eyeris (version 2.0.0)

speed: Calculate pupil speed using finite differences

Description

Computes the speed of pupil changes using finite differences between consecutive time points. This is a helper function for the detransient step.

Usage

speed(x, y)

Value

A vector of pupil speeds at each time point

Arguments

x

A numeric vector of pupil data

y

A numeric vector of time data