Algorithm 2: Fuzzy c-means clustering

1.

First consider n data points, x = [ x ( 1 ) x ( 2 ) x ( 3 ) x ( n ) ] to be segregated into c clusters

2.

Take the initial value of center of clusters, ck; where k = 1 , 2 , 3 , , c

3.

Evaluate grade (or degree) of membership uij i.e. the degree to which an x(i) belongs to the cluster with center cj,

u i , j = 1 l = 1 c ( | x ( i ) c j | | x ( i ) c l | ) 2 m 1 ; for i = 1 , 2 , 3 , , n (4)

The entire vector is expressed at kth iteration as,

U 1 ( k ) = [ u 11 , u 21 , u 31 , , u n 1 ] , under cluster 1

U 2 ( k ) = [ u 12 , u 22 , u 32 , , u n 2 ] , under cluster 2

U c ( k ) = [ u 1 c , u 2 c , u 3 c , , u n c ] , under cluster c

4.

Update the center cj like,

c j = x ( i ) c j u i j m x ( i ) x ( i ) c j u i j m (5)

5.

Repeat step 3 and 4 until | U j ( k ) U j ( k + 1 ) | < ε , j = 1 , 2 , 3 , , c