Description Usage Arguments Value
View source: R/preprocessing.R
Prepares raw gaze data for classification by a hidden Markov model as part of gazeHMM
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
x |
Numeric vector of raw x coordinates for each gaze samples. |
y |
Numeric vector of raw y coordinates for each gaze samples. |
t |
Numeric vector of time stamps for each gaze sample. |
unit |
Character string indicating the unit of coordinates (either 'px' or 'va'). |
res |
Screen resolution (in px). |
dim |
Screen dimensions (in mm). |
dist |
Distance between subject and screen (in mm). |
fr |
Sampling rate of the eye-tracker (in Hz). |
blink |
Either a numeric vector of length two indicating the x and y coordinates for blink samples
or a logical vector with the same length as |
b.win |
Time window around blink samples that are to be ignored (i.e., set to NA; in s). |
sg.order |
Order of the Savitzky-Golay filter. |
sg.length |
Length of the Savitzky-Golay filter (must be odd). |
A data frame with x and y gaze coordinates in degrees of visual angle, time stamps, velocity, accelelration, sample-to-sample angle, and an initial label for each sample.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.