
Classify gaze events with a lightweight unsupervised HMM
Source:R/experimental_bayesian_bridges.R
classify_gazepoint_events_hmm.RdEstimates gaze velocity, initializes hidden states by k-means, estimates a Gaussian-emission HMM, and decodes the most likely sequence with Viterbi. This is a lightweight package-internal HMM classifier and not a replacement for validated laboratory event-detection software.
Usage
classify_gazepoint_events_hmm(
data,
x,
y,
time,
subject = NULL,
n_states = 3,
state_labels = NULL
)