movement.kinematics#

Description

Compute variables derived from position data.

Functions

compute_acceleration

Compute acceleration array in Cartesian coordinates.

compute_backward_displacement

Compute backward displacement array in Cartesian coordinates.

compute_displacement

Compute displacement array in Cartesian coordinates.

compute_forward_displacement

Compute forward displacement array in Cartesian coordinates.

compute_forward_vector

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

compute_forward_vector_angle

Compute the signed angle between a reference and a forward vector.

compute_head_direction_vector

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

compute_kinetic_energy

Compute kinetic energy per individual.

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.