compute_acceleration#
- movement.kinematics.compute_acceleration(data)[source]#
Compute acceleration array in cartesian coordinates.
The acceleration array is the second time-derivative of the position array. It is computed by applying the second-order accurate central differences method on the velocity array.
- Parameters:
data (xarray.DataArray) – The input data containing position information, with
timeandspace(in Cartesian coordinates) as required dimensions.- Returns:
An xarray DataArray containing acceleration vectors in cartesian coordinates.
- Return type:
Notes
For the
positionarray of aposesdataset, theaccelerationarray will hold the acceleration vectors for every keypoint and every individual.For the
positionarray of abboxesdataset, theaccelerationarray will hold the acceleration vectors for the centroid of every individual bounding box.See also
compute_time_derivativeThe underlying function used.