声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 2251|回复: 4

[综合讨论] matlab 中有没有 K-均值聚类方法的函数

[复制链接]
发表于 2008-4-24 11:56 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
如何在matlab上实现K-均值聚类方法呢?有相应的函数吗?谢谢?

[ 本帖最后由 eight 于 2008-4-24 12:52 编辑 ]
回复
分享到:

使用道具 举报

发表于 2008-4-24 12:20 | 显示全部楼层
doc kmeans
发表于 2008-4-24 17:41 | 显示全部楼层

matlab里有这个函数
help kmeans

IDX = kmeans(X,k) partitions the
points in the n-by-p data matrix X into k clusters.
This iterative partitioning minimizes the sum, over all clusters, of the within-cluster
sums of point-to-cluster-centroid distances. Rows of X correspond
to points, columns correspond to variables. kmeans returns
an n-by-1 vector IDX containing
the cluster indices of each point. By default, kmeans uses
squared Euclidean distances.
 楼主| 发表于 2008-4-24 20:31 | 显示全部楼层
看到了,就是里面的参数设置不是很明白。
发表于 2008-4-25 10:35 | 显示全部楼层
这个就自己参照帮助文档琢磨一下吧

[ 本帖最后由 sogooda 于 2008-4-25 10:46 编辑 ]
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-9-23 13:28 , Processed in 0.052291 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表