pymovements.gaze.gaze_dataframe.GazeDataFrame.pos2vel#
- GazeDataFrame.pos2vel(method: str = 'smooth', **kwargs) None[source]#
Compute gaze velocites in dva/s from dva position coordinates.
This method requires a properly initialized
experimentattribute.After success, the gaze dataframe is extended by the resulting velocity columns.
- Parameters:
method (str) – Computation method. See
pos2vel()for details, default: smooth.**kwargs – Additional keyword arguments to be passed to the
pos2vel()method.
- Raises:
AttributeError – If gaze is None or there are no gaze dataframes present in the gaze attribute, or if experiment is None.