fcm
Fuzzy c-means clustering
Syntax
Description
FCM is a clustering method that allows each data point to belong to multiple clusters with varying degrees of membership. For more information, see Fuzzy C-Means Clustering.
[ returns the clustering results for all numbers of clusters
used along with the validity index used for determining the optimal number of clusters.
When the distance metric specified in centers,U,objFcn,info]
= fcm(___)options is either
"mahalanobis" or "fmle", info also
contains the covariance matrices generated for each number of clusters.
Examples
Input Arguments
Output Arguments
Tips
To generate a fuzzy inference system using FCM clustering, use the
genfisfunction. For example, suppose that you cluster your data using the following syntax.[centers,U] = fcm(data,fcmOpt);
The first
Mcolumns ofdatacorrespond to input variables and the remaining columns correspond to output variables.You can generate a fuzzy system using the same training data and FCM clustering configuration. To do so:
Configure the clustering options.
opt = genfisOptions("FCMClustering"); opt.NumClusters = fcmOpt.NumClusters; opt.Exponent = fcmOpt.Exponent; opt.MaxNumIteration = fcmOpt.MaxNumIteration; opt.MinImprovement = fcmOpt.MinImprovement; opt.DistanceMetric = fcmOpt.DistanceMetric; opt.Verbose = fcmOpt.Verbose;Extract the input and output variable data.
inputData = data(:,1:M); outputData = data(:,M+1:end);
Generate the FIS structure.
fis = genfis(inputData,outputData,opt);
The fuzzy system
fiscontains one fuzzy rule for each cluster, and each input and output variable has one membership function per cluster. For more information, seegenfisandgenfisOptions.
References
[1] Bezdek, James C. Pattern Recognition with Fuzzy Objective Function Algorithms. Boston, MA: Springer US, 1981. https://doi.org/10.1007/978-1-4757-0450-1.
[2] Gustafson, Donald, and William Kessel. “Fuzzy Clustering with a Fuzzy Covariance Matrix.” In 1978 IEEE Conference on Decision and Control Including the 17th Symposium on Adaptive Processes, 761–66. San Diego, CA, USA: IEEE, 1978. https://doi.org/10.1109/CDC.1978.268028.
[3] Gath, I., and A.B. Geva. “Unsupervised Optimal Fuzzy Clustering.” IEEE Transactions on Pattern Analysis and Machine Intelligence 11, no. 7 (July 1989): 773–80. https://doi.org/10.1109/34.192473.
[4] Xie, X.L., and G. Beni. “A Validity Measure for Fuzzy Clustering.” IEEE Transactions on Pattern Analysis and Machine Intelligence 13, no. 8 (August 1991): 841–47. https://doi.org/10.1109/CDC.1978.268028.


