• 大小: 2MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-01-04
  • 语言: Matlab
  • 标签: Kmeans  

资源简介

Kmeans聚类算法matlab源代码,可用于图像分割等数字图像处理领域。

资源截图

代码片段和文件信息

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(1param.c);
param.val=1;
%normalization
data=clust_normalize(data‘range‘);
%clustering
result = FCMclust(dataparam);
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(newresultparam);
%validation
result = validity(resultdataparam);
result.validity

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2005-04-19 11:23  Demos\clusteringexamples\
     目录           0  2005-04-19 11:23  Demos\clusteringexamples\motorcycle\
     文件         542  2005-03-22 16:20  Demos\clusteringexamples\motorcycle\FCMcall.m
     文件         589  2005-03-22 16:28  Demos\clusteringexamples\motorcycle\GGcall.m
     文件         543  2005-03-22 16:26  Demos\clusteringexamples\motorcycle\GKcall.m
     文件         408  2005-03-22 16:24  Demos\clusteringexamples\motorcycle\Kmeanscall.m
     文件         409  2005-03-22 16:29  Demos\clusteringexamples\motorcycle\Kmedoidcall.m
     文件        8086  2003-04-25 16:31  Demos\clusteringexamples\motorcycle\MotorCycle.txt
     目录           0  2005-04-19 11:23  Demos\clusteringexamples\synthetic\
     文件         499  2004-05-19 21:07  Demos\clusteringexamples\synthetic\FCMcall.m
     文件         598  2004-05-19 21:07  Demos\clusteringexamples\synthetic\GGcall.m
     文件         498  2004-05-19 21:08  Demos\clusteringexamples\synthetic\GKcall.m
     文件         536  2004-05-17 09:29  Demos\clusteringexamples\synthetic\Kmeanscall.m
     文件         508  2004-05-17 09:30  Demos\clusteringexamples\synthetic\Kmedoidcall.m
     文件         381  2004-03-14 19:08  Demos\clusteringexamples\synthetic\nDexample.m
     目录           0  2005-04-19 11:23  Demos\clustevalexample\
     文件        2952  2004-02-09 16:02  Demos\clustevalexample\data2.txt
     文件         539  2005-03-22 16:30  Demos\clustevalexample\evalexample.m
     目录           0  2005-04-19 11:23  Demos\comparing\
     文件         637  2004-05-19 21:08  Demos\comparing\FCMcall.m
     文件         716  2005-03-22 16:33  Demos\comparing\GGcall.m
     文件         676  2004-05-19 21:09  Demos\comparing\GKcall.m
     文件         421  2004-05-13 15:01  Demos\comparing\Kmeanscall.m
     文件         422  2004-05-13 15:01  Demos\comparing\Kmedoidcall.m
     文件        3510  2004-05-13 14:27  Demos\comparing\modvalidity.m
     文件         336  2004-05-13 15:00  Demos\comparing\nDexample.m
     目录           0  2005-04-19 11:23  Demos\normexample\
     文件        5705  2004-02-09 16:02  Demos\normexample\data3.txt
     文件         373  2004-05-17 17:32  Demos\normexample\normexample.m
     目录           0  2005-04-19 11:23  Demos\optnumber\
     文件        3510  2004-05-13 14:27  Demos\optnumber\modvalidity.m
............此处省略26个文件信息

评论

共有 条评论