pymovements.gaze.transforms.downsample#

pymovements.gaze.transforms.downsample(*, factor: int) Expr#

Downsample gaze data by an integer factor.

Downsampling is done by taking every nth sample specified by the downsampling factor.

Parameters:

factor (int) – Downsample factor.

Returns:

The respective polars expression.

Return type:

pl.Expr