px2va: Convert Gaze Coordinates

Description Usage Arguments Value

View source: R/preprocessing_helper_functions.R

Description

Converts raw gaze coordinates from pixels into degrees of visual angle.

Usage

1
px2va(x, res, dim, dist)

Arguments

x

Numeric vector of raw coordinates for each gaze sample.

res

Screen resolution (in px).

dim

Screen dimensions (in mm).

dist

Distance between subject and screen (in mm).

Value

A numeric vector with coordiantes in degrees of visual angle centered at (0,0) for each gaze sample.


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