pymovements.gaze.GazeDataFrame.pos2acc#
- GazeDataFrame.pos2acc(*, degree: int = 2, window_length: int = 7, padding: str | float | int | None = 'nearest') None[source]#
Compute gaze acceleration in dva/s^2 from dva position coordinates.
This method requires a properly initialized
experimentattribute.After success, the gaze dataframe is extended by the resulting velocity columns.
- Parameters:
window_length – The window size to use.
degree – The degree of the polynomial to use.
padding – The padding method to use. See
savitzky_golayfor details.
- Raises:
AttributeError – If gaze is None or there are no gaze dataframes present in the gaze attribute, or if experiment is None.