Skip to main content
. 2014 Sep 12;4:6318. doi: 10.1038/srep06318

Figure 1. Calculation of unit-velocity cross correlation.

Figure 1

(a), Three hypothetical flight trajectories and direction of motion projected on a plane (actual calculation is performed with three-dimensional velocities). Mosquito k is included to show the risk of using T = 0; i.e., vi(t+2) and vk(t) are well aligned, which leads to a high correlation value Inline graphic, although there is no motion coordination between i and k. (b), Calculation of cross correlation (2) between i and j with T = 2, using three data points from each trajectory. Cross correlation between vi and vj at time t is shown for lags m = −1, 0, and +1. (c), Determining the optimal lag m* and cross correlation Cij(t) by choosing the peak from Inline graphic. A positive lag indicates that i is following j.