Skip to main content
. 2017 Feb 10;17(2):342. doi: 10.3390/s17020342
Algorithm 3 Trajectory fragment cleaning algorithm.
Input: Gc(j,m,l), CM, umin;
Output: G^c(j,m,l), U^c, R^c(j,m,l);
Process:
  • (a1) set a temporary noisy set R^c=;

  • (a2) get Uc of Gc(j,m,l) with CM;

  • (a3) get N¯c from Uc with umin;

  •     if N¯c=0 then

  •         go to (a5);

  •     else

  •         go to (a4);

  •     end if

  • (a4) find the index k in N¯c with the maximum anomalous indexing;

  •     if k is not unique then

  •         choose k* be the one in k with the minimum row summation;

  •     else

  •         set k*=k;

  •     end if

  •     update R^c by adding the k*-th data in Gc(j,m,l) into R^c;

  •     delete the k*-th data in Gc(j,m,l), delete the k*-th row and k*-th column in Uc;

  •     go to (a3);

  • (a5) output the cleaned trajectories:

  •     if |Gc(j,m,l)|>1 then

  •         set G^c(j,m,l)=Gc(j,m,l), and U^c=Uc;

  •     else

  •         set G^c(j,m,l)=, and U^c=;

  •     end if

  •     set R^c(j,m,l)=R^c.