compute_acceleration#

movement.analysis.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 array containing position vectors in cartesian coordinates, with``time`` as a dimension.

Returns:

An xarray DataArray containing acceleration vectors in cartesian coordinates.

Return type:

xarray.DataArray

Notes

For the position array of a poses dataset, the acceleration array will hold the acceleration vectors for every keypoint and every individual.

For the position array of a bboxes dataset, the acceleration array will hold the acceleration vectors for the centroid of every individual bounding box.

See also

xarray.DataArray.differentiate()

The underlying method used.