smooth_interpolate_pupil: Smooths the pupil trace before linear or cubic interpolation.

View source: R/smooth_interpolate_pupil.R

smooth_interpolate_pupilR Documentation

Smooths the pupil trace before linear or cubic interpolation.

Description

Smooths the pupil trace before linear or cubic interpolation.

Usage

smooth_interpolate_pupil(datafile, pupil = "pupil",
  extendpupil = "extendpupil", extendblinks = FALSE,
  step.first = "smooth", filter = "moving", maxgap = Inf,
  type = NULL, hz = NA, n = NA)

Arguments

datafile

data frame.

pupil

name of pupil column

extendpupil

name of pupil col that was extended

extendblinks

blinks already extended in data frame

step.first

whether you want to smooth/interpolate or interpolate/smooth

filter

use either moving and hann filter

maxgap

max number of NAs to interpolate.

type

type of interpolation (linear or cubic)

hz

recording frequency of ET

n

moving average window

Value

df containing interpolated data


dmirman/gazer documentation built on Aug. 1, 2022, 2:02 p.m.