postprocess: Postprocess Gaze Data Classification

Description Usage Arguments Value

View source: R/postprocessing.R

Description

Applies a postprocessing routine to classified gaze data as part of gazeHMM. Relabels samples that violate constraints and computes eye movement event metrics.

Usage

1
postprocess(data, state, fr, min.sac = 0.01)

Arguments

data

Data frame with preprocessed gaze samples as returned by preprocess. The object must contain the variables t, vel, acc, and angle.

state

Vector of state labels for each sample as returned by HMM_classify.

fr

Sampling rate of the eye-tracker (in Hz).

min.sac

Minimum saccade duration (in s).

Value

A list with two objects: The preprocessed data with postprocessed sample labels and a list with data frames for each classified event containing the event metrics (e.g., fixation duration).


maltelueken/gazeHMM documentation built on Oct. 6, 2020, 11:10 a.m.