accuracy: Compute Gaze Accuracy

View source: R/ETDQualitizer.R

accuracyR Documentation

Compute Gaze Accuracy

Description

Calculates the angular offset between gaze and target directions.

Usage

accuracy(azi, ele, target_azi, target_ele, central_tendency_fun = mean)

Arguments

azi

Gaze azimuth in degrees.

ele

Gaze elevation in degrees.

target_azi

Target azimuth in degrees.

target_ele

Target elevation in degrees.

central_tendency_fun

Function to compute central tendency (default: mean).

Value

A list with offset, offset_azi, and offset_ele, the total, horizontal and vertical offset of gaze from the target (in degrees).

Examples

accuracy(c(1, 2), c(1, 2), 0, 0)

ETDQualitizer documentation built on Sept. 9, 2025, 5:40 p.m.