Skip to main content
. 2018 Oct 26;18(11):3639. doi: 10.3390/s18113639
Algorithm 3 Physical Attraction Model
Input: Trajectory P1P2Pn; OSM-WayID-List;
Output: New Trajectory P1P2 … → Pn;
1: fort = 1 to n do
2:   T = 0; K = ∞;
3:   d¯ = meandistance (d1, d2dn);
4:   K = did¯;
5:   While T ≤ 20 && K > 0.5 do
6:    F1(Pi) = F2(Pi);
7:    d¯ = meandistance ();
8:    K = did¯;
9:    T = T + 1;
10:   end while
11: end for