TrajDistance | R Documentation |
Calculates the distance between the start and end of a trajectory (or a portion of a trajectory). Also called the diffusion distance, net distance, displacement, or bee-line from start to finish.
TrajDistance(trj, startIndex = 1, endIndex = nrow(trj))
trj |
Trajectory whose distance is to be calculated. |
startIndex |
Index of the starting point. |
endIndex |
Index of the ending point. |
Numeric distance from the start to the end of the trajectory.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.