Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What common step metrics should sftrack calculate. #24

Closed
birderboone opened this issue Aug 4, 2020 · 5 comments
Closed

What common step metrics should sftrack calculate. #24

birderboone opened this issue Aug 4, 2020 · 5 comments
Labels
question Further information is requested

Comments

@birderboone
Copy link
Member

The step_metrics() attempts to calculate common metrics between successive steps in an sftrack/sftraj. Currently those are:

  • dx
  • dy
  • distance
  • speed
  • absolute angle

What other standardized metrics should be calculated?

@birderboone birderboone added the question Further information is requested label Aug 4, 2020
@birderboone
Copy link
Member Author

birderboone commented Aug 27, 2020

From a conversation from @rociojoo . Relative Angle should be added as well.

@pratikunterwegs
Copy link

Hi, just jumping in here, I wonder whether dt (difftime) is something that's already present and if you might want to add that?
Might help users separate data based on large time intervals, which could indicate missing data in between.

@rociojoo
Copy link
Member

Yes, dt is already there :)

@basille
Copy link
Member

basille commented Sep 2, 2020

  • Also to be computed, turn angles. Also known as "relative angles" (adehabitatLT) or "turning angles" (Turchin for instance). (I personally advocate for "turn angles"). Assumes ordering of steps. If an sftraj object is provided, there needs to be a check that the current step's start point is the same as the previous step's end point — but I would suggest not to reorder (can throw a warning if steps are not in order).
  • Each metric should have their own vectorized function, such as step_dx, step_turn_angle, etc. as to only compute one metric on the file as a vector.
  • As step_metrcis returns a data.frame, it would be good to be able to select which metrics to return — and possibly leave the possibility for the user to rename those in the arguments.

@basille
Copy link
Member

basille commented Jun 3, 2022

Closing this issue now that sftrack is developed and on CRAN.

@basille basille closed this as completed Jun 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants