• 大小: 2.44MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-08-11
  • 语言: 其他
  • 标签: kmeans  

资源简介

Kmeans算法实例,有代码和运行结果,还有截图

资源截图

代码片段和文件信息

function [centers] = calcCenters(datasets clusters K)
    centers = [];
    for i = 1:K
        ds = datasets(find(clusters==i) :);
        mean(ds)
        centers=[centers; mean(ds)];
    end

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        202  2009-11-29 17:20  kmeans[good demo]\kmeans\calcCenters.m

     文件        505  2012-04-10 13:29  kmeans[good demo]\kmeans\clustering.asv

     文件        491  2009-11-29 15:00  kmeans[good demo]\kmeans\clustering.m

     文件       4055  2009-11-29 15:55  kmeans[good demo]\kmeans\datasets.mat

     文件        769  2009-11-29 15:41  kmeans[good demo]\kmeans\genDatasets.m

     文件       1837  2009-11-30 00:02  kmeans[good demo]\kmeans\imgseg\kmeans1.asv

     文件       1837  2009-11-30 00:03  kmeans[good demo]\kmeans\imgseg\kmeans1.m

     文件    1103360  2010-06-29 21:44  kmeans[good demo]\kmeans\K-means聚类作业.doc

     文件       1156  2012-04-09 16:44  kmeans[good demo]\kmeans\kmeans_plot.m

     文件       1408  2009-11-29 19:20  kmeans[good demo]\kmeans\SLC.m

     文件        659  2009-11-29 16:35  kmeans[good demo]\kmeans\slc_plot.m

     文件        560  2012-04-10 13:29  kmeans[good demo]\kmeans\task1.asv

     文件        554  2012-04-09 16:43  kmeans[good demo]\kmeans\task1.m

     文件      23710  2009-11-29 15:22  kmeans[good demo]\kmeans\实验一图片\additons\1.jpg

     文件      22968  2009-11-29 15:22  kmeans[good demo]\kmeans\实验一图片\additons\2.jpg

     文件      23717  2009-11-29 15:31  kmeans[good demo]\kmeans\实验一图片\additons\3-1.jpg

     文件      23273  2009-11-29 15:32  kmeans[good demo]\kmeans\实验一图片\additons\3-2.jpg

     文件      23035  2009-11-29 15:31  kmeans[good demo]\kmeans\实验一图片\additons\3-3.jpg

     文件      23033  2009-11-29 15:31  kmeans[good demo]\kmeans\实验一图片\additons\3-4.jpg

     文件      22941  2009-11-29 15:31  kmeans[good demo]\kmeans\实验一图片\additons\3-7.jpg

     文件      23034  2009-11-29 15:21  kmeans[good demo]\kmeans\实验一图片\additons\3.jpg

     文件      22824  2009-11-29 15:21  kmeans[good demo]\kmeans\实验一图片\additons\4.jpg

     文件      22848  2009-11-29 15:21  kmeans[good demo]\kmeans\实验一图片\additons\5.jpg

     文件      22848  2009-11-29 15:21  kmeans[good demo]\kmeans\实验一图片\additons\6.jpg

     文件      22223  2009-11-29 15:18  kmeans[good demo]\kmeans\实验一图片\additons\pic1\1.jpg

     文件      22569  2009-11-29 15:17  kmeans[good demo]\kmeans\实验一图片\additons\pic1\2.jpg

     文件      22281  2009-11-29 15:17  kmeans[good demo]\kmeans\实验一图片\additons\pic1\3.jpg

     文件      22194  2009-11-29 15:16  kmeans[good demo]\kmeans\实验一图片\additons\pic1\4.jpg

     文件      22194  2009-11-29 15:16  kmeans[good demo]\kmeans\实验一图片\additons\pic1\5.jpg

     文件      23617  2009-11-29 15:27  kmeans[good demo]\kmeans\实验一图片\kmeans1-good\2-1.jpg

............此处省略45个文件信息

评论

共有 条评论