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 July 3, 2025, 9:08 a.m.