first_fixation_duration#

pymovements.measure.reading.first_fixation_duration(duration: str | Expr = 'duration', is_first_pass: str | Expr = 'is_first_pass') → Expr[source]#

Duration of the first fixation during first pass only (FFD).

Warning

Requires onset-sorted input.

Parameters:
  • duration (str | pl.Expr) – Column name or expression of the fixation duration. (default: 'duration')

  • is_first_pass (str | pl.Expr) – Column name or expression of the first-pass flag. (default: 'is_first_pass')

Returns:

Aggregation expression producing the FFD column.

Return type:

pl.Expr