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