pymovements.gaze.transforms.pos2acc#
- pymovements.gaze.transforms.pos2acc(*, sampling_rate: float, n_components: int, degree: int = 2, window_length: int = 7, padding: str | float | int | None = 'nearest', position_column: str = 'position', acceleration_column: str = 'acceleration') pl.Expr[source]#
Compute acceleration data from positional data.
- Parameters:
sampling_rate – Sampling rate of input time series.
degree – The degree of the polynomial to use.
window_length – The window size to use.
padding – The padding method to use. See
savitzky_golayfor details.n_components – Number of components in input column.
position_column – The input position column name.
acceleration_column – The output acceleration column name.