fuzzy clustering and data analysis toolbox

源代码在线查看: fcmcall.m

软件大小: 54 K
上传用户: xiaochonghan
关键词: clustering analysis toolbox fuzzy
下载地址: 免注册下载 普通下载 VIP

相关代码

				clear all
				close all
				path(path,'..\..\..\FUZZCLUST')
				%the data
				load motorcycle.txt
				data.X = motorcycle(:,[1 2]);
				
				%parameters
				param.c=4;
				param.m=2;
				param.e=1e-6;
				param.ro=ones(1,param.c);
				param.val=1;
				%normalization
				data=clust_normalize(data,'range');
				%clustering
				result = FCMclust(data,param);
				plot(data.X(:,1),data.X(:,2),'b.',result.cluster.v(:,1),result.cluster.v(:,2),'ro');
				hold on
				%draw contour-map
				new.X=data.X;
				eval=clusteval(new,result,param);
				%validation
				result = validity(result,data,param);
				result.validity			

相关资源