Skip to content

Discard Short Fixations

Sebastian Kapp edited this page Feb 25, 2021 · 1 revision

discard_short_fixations R Documentation


Discard Short Fixations

Description

Discard fixations which have a duration shorter than the specified minimum duration.

Usage

discard_short_fixations(data, min_duration = 60, reclassify_saccade = FALSE)

Arguments


data Data frame of the eye tracking data we want to process min_duration Minimum duration of a fixation reclassify_saccade Reclassify discarded fixations as saccade instead of a gap


Format

Input data frame columns

eventIndex

: Index of the event in which the gaze point lies

eventType

: Type of the current event

eventDuration

: Duration of the current event

fixation_x

: X coordinate of the current fixation

fixation_y

: Y coordinate of the current fixation

fixation_z

: Z coordinate of the current fixation

Details

This function removes all fixations which are shorter than the specified minimum duration and reclassifies them as gaps. If reclassify_saccade is specified they are classified as saccade instead of a gap. This post processing is only necessary after the I-VT filter as both I-DT as well as I-AOI inherently include a minimum fixation duration.

Value

The input data frame with the fixation classifications which are too short discarded