Description Usage Arguments Details Value References See Also Examples
The function DI
measures dynamic interaction between two moving objects. It
calculates the local level di statistic for movement displacement, direction,
and overall. DI can compute time- and/or distance-based weighting schemes
following Long and Nelson (2013).
1 |
traj1 |
an object of the class |
traj2 |
same as |
tc |
time threshold for determining simultaneous fixes – see function: |
local |
logical value indicating whether a dataframe ( |
rand |
number of permutations to use in the local permutation test. |
alpha |
value for the α parameter in the formula for di_d (default = 1). |
This function can be used for calculating the dynamic interaction (DI) statistic as described in Long and Nelson (2013). The DI statistic can be used to measure the local level of dynamic interaction between two moving objects. Specifically, it measures dynamic interaction in movement direction and displacement.
If local=FALSE
(the default) DI returns the numeric value of the DI index (along with DI_theta and DI_d), and the associated p-value from a permutation test (see IAB
).
If local=TRUE
DI returns a dataframe that contains the localized di
values (see Long and Nelson 2013). The columns for di
, di.theta
, and di.d
represent dynamic interaction overall, in direction (azimuth), and in displacement, respectively for each segment. A localized p-value for a one sided test for positive interaction (and z-score) is computed based on rand
permutations of the segments. The pkey columns can be used to match the simultaneous segments to the original trajectory (see IAB
).
Long, J.A., Nelson, T.A. 2013. Measuring dynamic interaction in movement data. Transactions in GIS. 17(1): 62-77.
GetSimultaneous, Cr, IAB
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.