|
Algorithm 3 Trajectory fragment cleaning algorithm. |
|
Input:
, , ; |
|
Output:
, , ; |
Process:
(a1) set a temporary noisy set ;
(a2) get of with ;
(a3) get from with ;
if
then
go to (a5);
else
go to (a4);
end if
(a4) find the index k in with the maximum anomalous indexing;
if
k is not unique then
choose be the one in k with the minimum row summation;
else
set ;
end if
update by adding the -th data in into ;
delete the -th data in , delete the -th row and -th column in ;
go to (a3);
(a5) output the cleaned trajectories:
if
then
set , and ;
else
set , and ;
end if
set .
|