Algorithm 1 findLocationClusters. |
Input:
Output:
|
-
1:
-
2:
-
3:
-
4:
for to m
do
-
5:
-
6:
if
then
-
7:
for
to m
do
-
8:
for
to
do
-
9:
compute as in Equation (6)
-
10:
if
then
-
11:
//assign i and j to the same cluster
-
12:
-
13:
end if
-
14:
end for
-
15:
end for
-
16:
if
then
-
17:
-
18:
-
19:
end if
-
20:
end if
-
21:
end for
|