Skip to content

Fuzzy c-means clustering algorithm implementation using Matlab.

Notifications You must be signed in to change notification settings

andreacanepa/Fuzzy-C-Means

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

Fuzzy C-means

Fuzzy c-means clustering algorithm implementation using Matlab.

X is the dataset
K is the number of clusters
m is the fuzzyfication parameter (currently "2" in order to improve performance)
N_MAX is the maximum number of iterations
threshold is the value used in order to check the convergence ("0.01" in my case)
V is the centroids' matrix.


The following lines of code determine which cluster each single datapoint belongs to.

fcm_labels = ones(size(X,1),1);  
for i = 1:size(X,1)  
    aux = fcm_U(i,:);  
    [elem,index] = max(aux);  
    fcm_labels(i,1) = index;   
end 

About

Fuzzy c-means clustering algorithm implementation using Matlab.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages