speed: Calculate pupil speed using finite differences

View source: R/pipeline-detransient.R

speedR Documentation

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)

Arguments

x

A numeric vector of pupil data

y

A numeric vector of time data

Value

A vector of pupil speeds at each time point


eyeris documentation built on Aug. 8, 2025, 7:51 p.m.