first_duration#
- pymovements.measure.reading.first_duration(fixations: DataFrame) DataFrame[source]#
Compute the duration of the first fixation on each word (FD).
The first fixation is determined by the earliest
onsetvalue, regardless of reading pass.- Parameters:
fixations (pl.DataFrame) – Fixation table containing at least
trial,page,word_idx,onset, anddurationcolumns.- Returns:
DataFrame with columns
trial,page,word_idx, andFD.- Return type:
pl.DataFrame