annotate_delta_out#

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

Annotate fixations with the difference in word index to the next fixation.

Parameters:

fixations (pl.DataFrame) – Fixation-level DataFrame. Must contain word_idx and next_word_idx columns.

Returns:

Input DataFrame with an additional delta_out column.

Return type:

pl.DataFrame