pymovements.dataset.Dataset.pos2acc#
- Dataset.pos2acc(window_length: int = 7, degree: int = 2, mode: str = 'interp', cval: float = 0.0, verbose: bool = True) Dataset[source]#
Compute gaze accelerations in dva/s^2 from dva coordinates.
This method requires a properly initialized
experimentattribute.After success, the gaze dataframe is extended by the resulting acceleration columns.
- Parameters:
window_length – The window size to use.
degree – The degree of the polynomial to use.
mode – The padding mode to use.
cval – A constant value for padding.
verbose (bool) – If True, show progress of computation.
- Raises:
AttributeError – If gaze is None or there are no gaze dataframes present in the gaze attribute, or if experiment is None.
- Returns:
Returns self, useful for method cascading.
- Return type: