reclassify: Relabel State Sequence

Description Usage Arguments Value

View source: R/postprocessing_helper_functions.R

Description

Relabels the state sequence estimated by a hidden Markov model with a recursive algorithm. Used as an internal function in postprocess.

Usage

1
reclassify(state, t, min.sac)

Arguments

state

Integer vector with estimated states for each gaze sample as returned by HMM_classify.

t

Numeric vector of time stamps for each gaze sample.

min.sac

Minimum saccade duration (in s).

Value

A data frame with the relabeled states and event number for each gaze sample.


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