Clear Filters
Clear Filters

fuzzy C-means Algorithm

6 views (last 30 days)
Ahmed albasri
Ahmed albasri on 2 Aug 2023
Commented: Ahmed albasri on 2 Aug 2023
In the MATLAB language, when using the FCM algorithm, we find that it deals with some default options, for example, it uses the Euclidean distance, and when we want to use another type of distance, the program refuses to execute. Is it possible to modify these options?
I am a PhD student and I need a very urgent code to modify the Euclidean distance and use the suggested distance in this algorithm... Is there a way to do that?
Please help to find a solution to the problem

Answers (1)

Shubham
Shubham on 2 Aug 2023
Hi Ahmed,
It is possible to modify the options in the Fuzzy C-Means (FCM) algorithm in MATLAB, including the distance metric used. By default, MATLAB's fcm function uses the Euclidean distance metric. However, you can modify the code to use a different distance metric than Euclidean Distance. Besides "euclidean", the other method for computing distance metric available is "mahalanobis".Read More
To specify options for clustering data using the fcm function in MATLAB, you can use the fcmOptions object. This object allows you to set various options, including the number of clusters, the clustering exponent, and the distance metric.
Refer to the following documentations for more details.
1.fcm
  1 Comment
Ahmed albasri
Ahmed albasri on 2 Aug 2023
Dear Shubham
Thank you very much for the answer, but this option that you referred to has already been implemented and does not accept any modification. Rather, it is locked to the default options for the distance, either "Euclidean distance" or "mahalanobis".
I am interested in changing the type of distance.
So I hope that the MATLAB support team will provide an option to modify the FCM algorithm.

Sign in to comment.

Categories

Find more on Data Clustering in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!