first_reading_time#

pymovements.measure.reading.first_reading_time(fixations: DataFrame) DataFrame[source]#

Compute the sum of fixation durations during the first run (FRT).

FRT is the total dwell time from first entering a word until first leaving it (i.e., the first contiguous run of fixations).

Parameters:

fixations (pl.DataFrame) – Fixation table containing at least trial, page, word_idx, run_id, and duration columns.

Returns:

DataFrame with columns trial, page, word_idx, and FRT.

Return type:

pl.DataFrame