Open Rory235 opened 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?
trackpy.motion.diagonal_size
Following up on this, what does the lambda do it the many_trajectories.groupby('particle').filter(lambda x: tp.diagonal_size(x) > 5)
lambda
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
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 themany_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