-
Notifications
You must be signed in to change notification settings - Fork 4
Fill Gaps
gap_fill R Documentation
This function fills gaps in the eye tracking data by inserting a linear interpolation between the last valid sample before the gap and the first valid sample after the gap.
gap_fill(data, max_gap_length = 75)
data
Data frame of the eye tracking data we want to process
max_gap_length
Maximum gap length in ms which we want to fill
Input data frame columns
gazeHasValue
: Boolean if there is valid gaze data
eyeDataRelativeTimestamp
: Timestamp of the data
gazeorigin_x
: X coordinates of the gaze origin
gazeorigin_y
: Y coordinates of the gaze origin
gazeorigin_z
: Z coordinates of the gaze origin
gazeDirection_x
: X coordinates of the gaze direction
gazeDirection_y
: Y coordinates of the gaze direction
gazeDirection_z
: Z coordinates of the gaze direction
gazePoint_x
: X coordinates of the gaze point
gazePoint_y
: Y coordinates of the gaze point
gazePoint_z
: Z coordinates of the gaze point
The modified input data frame with the gaps filled and an additional column modified which indicates if the line was modified