duration#
- pymovements.measure.samples.duration(*, time_column: str = 'time') Expr[source]#
Duration spanned by a group of samples.
The duration is defined as the difference between the maximum and minimum timestamps in the group. The result is expressed in the unit of the time column (usually milliseconds). When used with
measure_samples(), the duration is calculated for the complete recording or separately for each trial, depending on whether trial columns are configured.This measures only the observed sample span. It can be shorter than the EyeLink
START-to-ENDrecording span when samples are absent because of blinks, gaps, or filtering.- Parameters:
time_column (str) – Name of the timestamp column. (default: ‘time’)
- Returns:
The duration of the sample group.
- Return type:
pl.Expr