movingpandas.TrajectoryCollection.add_angular_difference#
- TrajectoryCollection.add_angular_difference(overwrite=False, name='angular_difference', n_threads=1)#
Add angular difference to the trajectory’s DataFrame.
Angular difference is calculated as the absolute smaller angle between direction for points along the trajectory. Values are [0, 180.0]
- Parameters:
overwrite (bool) – Whether to overwrite existing angular difference values (default: False)
name (str) – Name of the angular_difference column (default: “angular_difference”)
n_threads (int) – Number of threads to use for computation (default: 1)