mie-lab / trackintel

trackintel is a framework for spatio-temporal analysis of movement trajectory and mobility data.
MIT License
199 stars 50 forks source link

ENH: add radius of gyration #563

Closed bifbof closed 10 months ago

bifbof commented 10 months ago

I did not know where to put the function, so I put it so far into a new file in analysis. Added branch to calculate planar distances as well.

codecov[bot] commented 10 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (9bc8988) 92.94% compared to head (f88146b) 93.04%. Report is 1 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #563 +/- ## ========================================== + Coverage 92.94% 93.04% +0.09% ========================================== Files 32 33 +1 Lines 2041 2069 +28 Branches 368 372 +4 ========================================== + Hits 1897 1925 +28 Misses 130 130 Partials 14 14 ``` | [Files](https://app.codecov.io/gh/mie-lab/trackintel/pull/563?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mie-lab) | Coverage Δ | | |---|---|---| | [trackintel/analysis/\_\_init\_\_.py](https://app.codecov.io/gh/mie-lab/trackintel/pull/563?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mie-lab#diff-dHJhY2tpbnRlbC9hbmFseXNpcy9fX2luaXRfXy5weQ==) | `100.00% <100.00%> (ø)` | | | [trackintel/analysis/metrics.py](https://app.codecov.io/gh/mie-lab/trackintel/pull/563?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mie-lab#diff-dHJhY2tpbnRlbC9hbmFseXNpcy9tZXRyaWNzLnB5) | `100.00% <100.00%> (ø)` | | | [trackintel/model/staypoints.py](https://app.codecov.io/gh/mie-lab/trackintel/pull/563?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mie-lab#diff-dHJhY2tpbnRlbC9tb2RlbC9zdGF5cG9pbnRzLnB5) | `100.00% <100.00%> (ø)` | |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

bifbof commented 10 months ago

PR updated @hongyeehh :)