|
Algorithm 4 Rules for segment merging |
-
1:
INPUT All the atomic segments in a given trajectory (seglist), temporal threshold: Ψ
-
2:
OUPUT a set of merged segments (mergedSeglist)
-
3:
PROCEDURE Segment_Merging()
-
4:
-
5:
boolean
-
6:
for i=0 to k−2 do
-
7:
-
8:
-
9:
RULE 1:
-
10:
if
then
-
11:
-
12:
-
13:
-
14:
end
if
-
15:
RULE 2:
-
16:
if
then
-
17:
-
18:
-
19:
-
20:
end
if
-
21:
RULE 3:
-
22:
if
then
-
23:
-
24:
-
25:
-
26:
end
if
-
27:
RULE 4:
-
28:
if
then
-
29:
-
30:
-
31:
end
if
-
32:
end
for
-
33:
END PROCEDURE
|