compute_speed#

movement.kinematics.compute_speed(data)[source]#

Compute instantaneous speed at each time point.

Speed is a scalar quantity computed as the Euclidean norm (magnitude) of the velocity vector at each time point.

Parameters:

data (xarray.DataArray) – The input data containing position information, with time and space (in Cartesian coordinates) as required dimensions.

Returns:

An xarray DataArray containing the computed speed, with dimensions matching those of the input data, except space is removed.

Return type:

xarray.DataArray