View source: R/PreprocessingFunctions.R
| calculate_rms | R Documentation |
Calculate the RMS of a gaze segment with X and Y coordinates. RMS is inversely related to precision, so that lower RMS indicates higher precision calculate_rms calculates the root mean square of the Euclidean distance between subsequent samples Adjust the parameters 'xcol' and 'ycol' to specify the data you want to work with. For example, it is possible to calculate the RMS of the left and right eye separately by specifying appropriate columns.
calculate_rms(gaze_in, xcol = "x.raw", ycol = "y.raw", one_degree = 40)
gaze_in |
data frame with gaze to process. Must contain the variables specified in the parameters 'xcol' and 'ycol' |
xcol |
Name of column containing x coordinates |
ycol |
Name of column containing y coordinates |
one_degree |
One degree of the visual field in the units of the X and Y coordinates as specified in 'xcol' and 'ycol' |
sample-to-sample RMS
rms <- calculate_rms(sample.data.unprocessed)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.