Description Usage Arguments Value
View source: R/preprocessing_helper_functions.R
Calculates the relative angle between subsequent gaze samples. Uses the backward difference to compute the absolute angle between two samples and the forward difference for the change in angle at each sample.
1 | calc_theta(x, y)
|
x |
Numeric vector of x coordinates for each gaze sample. |
y |
Numeric vector of y coordinates for each gaze sample. |
A vector containing the sample-to-sample angle (in radians) for each gaze sample.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.