Skip to contents

The intended use of this method is for removing pupil samples that emerge more quickly than would be physiologically expected. This is accomplished by rejecting samples that exceed a "speed"-based threshold (i.e., median absolute deviation from sample-to-sample). This threshold is computed based on the constant n, which defaults to the value 16.

Usage

detransient(eyeris, n = 16)

Arguments

eyeris

An object of class eyeris dervived from load().

n

A constant used to compute the median absolute deviation (MAD) threshold.

Value

An eyeris object with a new column in timeseries: pupil_raw_{...}_detransient.

Examples

system.file("extdata", "memory.asc", package = "eyeris") |>
  eyeris::load_asc() |>
  eyeris::deblink(extend = 50) |>
  eyeris::detransient() |>
  plot(seed = 0)