Skip to content

feat: implement compute_directional_change (#907)#916

Open
mujju-212 wants to merge 10 commits intoneuroinformatics-unit:mainfrom
mujju-212:feat/907-compute-directional-change
Open

feat: implement compute_directional_change (#907)#916
mujju-212 wants to merge 10 commits intoneuroinformatics-unit:mainfrom
mujju-212:feat/907-compute-directional-change

Conversation

@mujju-212
Copy link
Copy Markdown

Closes #907.

Description

This PR implements the \compute_directional_change\ function as described in issue #907. It calculates directional change as the absolute turning angle divided by the time interval over which the turn occurs.

Notes

isha822 and others added 10 commits February 22, 2026 10:29
- Implements signed turning angle computation using backward displacement
- Wraps angles to (-π, π] using modulo identity
- Handles zero-length steps (stationary animal) explicitly with NaN
- Supports in_degrees parameter
- Adds comprehensive tests covering edge cases
- Adds gallery example using EPM dataset with behavioural zone analysis
@sonarqubecloud
Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Metric] Add function for computing directional change (DC)

2 participants