Skip to main content
. 2017 Dec 13;17(12):2902. doi: 10.3390/s17122902
Algorithm 1 Fuzzy C-means algorithm.
  • 1:

    Initialize U, a NxCmatrix with the membership grades

  • 2:

    for each iteration k do

  • 3:

        Compute the centers set C(k)=[cj] using cj=i=1Nui,jmxii=1Nui,jm

  • 4:

        Update U(k) with uij=1k=1Cxicjxick2m1

  • 5:

        if Uk+1Uk<ϵ then

  • 6:

             Finish the process

  • 7:

        end if

  • 8:

    end for