K均值聚类法(matlab)我要分享

K-means clustering algorithm (MATLAB)

matlab 均值

关注次数: 273

下载次数: 0

文件大小: 4.66 kB

代码分类: 其他

开发平台: matlab

下载需要积分: 2积分

版权声明:如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

代码描述

中文说明:最近学习模式识别以及图像处理,搜集一些matlab的程序源代码,共享一下,同时也希望结交有共同兴趣爱好的朋友。K均值聚类法分为如下几个步骤:一、初始化聚类中心 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报


English Description:

Recent study pattern recognition and image processing, collect some MATLAB source code, share them, and also hope to make friends with common interests. K-means clustering method is divided into the following steps: first, initializing cluster centers 1, depending on the issue, based on experience from the sample set c-an appropriate sample was selected as the initial cluster centers. 2, c before using samples as the initial cluster centers. 3, all the samples were randomly divided into class c, calculate the sample mean of each type, the sample mean as the initial cluster centers. Second, the initial cluster 1, on principle samples into the nearest cluster Center is represented by the class. 2, take a sample, be classified in its closest cluster Center category, recalculate the sample mean, updating cluster centers. Then take a sample, repeat the operation until all the samples into the corresponding classes in the. Third, determine whether clustering reasonably squared error function


代码预览