non_aoi_fixation_count_ratio#
- pymovements.measure.reading.non_aoi_fixation_count_ratio(word_idx: str | Expr = 'word_idx') Expr[source]#
Ratio of fixations outside any AOI, by count (NAFCR).
NAFCR is a summary of a whole reading sequence, not a word-level measure: aggregate it over reading-sequence groups (e.g.
['trial', 'page']) instead of word groups.A fixation counts as outside all AOIs if and only if its word index is null, which is the convention produced by
map_to_aois(). Datasets that encode outside-AOI fixations with a sentinel value such as-1must convert those values to null first, otherwise the ratio is silently underestimated.The input must contain only fixation events, so filter the event frame to fixations first: non-fixation rows carry null AOI columns after
map_to_aois()and would inflate the ratio.- Parameters:
word_idx (str | pl.Expr) – Column name or expression of the fixated word index. (default:
'word_idx')- Returns:
Aggregation expression producing the
NAFCRcolumn (proportion of fixations without a mapped word, 0.0 to 1.0).- Return type:
pl.Expr