soft-matter / trackpy

Python particle tracking toolkit
http://soft-matter.github.io/trackpy
Other
441 stars 131 forks source link

trackpy.motion.diagonal_size #715

Open Rory235 opened 1 year ago

Rory235 commented 1 year ago

Just wondering does the code trackpy.motion.diagonal_size calculate the gradient of a trajectory? If so how does it do this?

Following up on this, what does the lambda do it the many_trajectories.groupby('particle').filter(lambda x: tp.diagonal_size(x) > 5)

Link to the API page

http://soft-matter.github.io/trackpy/v0.5.0/generated/trackpy.motion.diagonal_size.html#trackpy-motion-diagonal-size