Algorithm 1 Fuzzy C-means clustering. |
-
1:
parameters:
-
2:
initialize:
-
3:
randomly initialize the membership matrix:
-
4:
-
5:
calculate the Euclidean distance:
-
6:
update the new membership matrix:
-
7:
repeat
-
8:
step 4
-
9:
until centroids no longer change
-
10:
while the topology has changed do
-
11:
steps 1 to 6
-
12:
end while
|