Fuzzy聚类工具箱

源代码在线查看: ggcall.m

软件大小: 2088 K
上传用户: sun67512945
关键词: Fuzzy 聚类 工具箱
下载地址: 免注册下载 普通下载 VIP

相关代码

				close all
				clear all
				path(path,'..\..\..\FUZZCLUST')
				
				%loading the data set
				data.X = nDexample(5,400,2,1)
				
				%parameters
				param.c=3;
				param.m=2;
				param.e=1e-4;
				param.vis=0;
				param.val=1;
				%normalization
				data=clust_normalize(data,'range');
				
				result = FCMclust(data,param);
				param.c=result.data.f; %initializing with the results of C-means
				result = GGclust(data,param); 
				result = validity(result,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);
				result.validity			

相关资源