pymovements.Gaze.pos2acc#
- Gaze.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
experiment
attribute.After success,
samples
is extended by the resulting velocity columns.- Parameters:
degree (int) – The degree of the polynomial to use. (default: 2)
window_length (int) – The window size to use. (default: 7)
padding (str | float | int | None) – The padding method to use. See
savitzky_golay
for details. (default: ‘nearest’)
- Raises:
AttributeError – If
samples
is None, or ifexperiment
is None.