pymovements.datasets.Dataset.pos2vel#
- Dataset.pos2vel(method: str = 'smooth', verbose: bool = True, **kwargs) None[source]#
Compute gaze velocites in dva/s from dva 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.verbose (bool) – If True, show progress of computation.
**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.