movement.kinematics#

Description

Compute kinematic variables like velocity and acceleration.

Functions

compute_acceleration

Compute acceleration array in cartesian coordinates.

compute_displacement

Compute displacement array in cartesian coordinates.

compute_forward_vector

Compute a 2D forward vector given two left-right symmetric keypoints.

compute_head_direction_vector

Compute the 2D head direction vector given two keypoints on the head.

compute_pairwise_distances

Compute pairwise distances between individuals or keypoints.

compute_path_length

Compute the length of a path travelled between two time points.

compute_speed

Compute instantaneous speed at each time point.

compute_time_derivative

Compute the time-derivative of an array using numerical differentiation.

compute_velocity

Compute velocity array in cartesian coordinates.