matlab 中有没有 K-均值聚类方法的函数
如何在matlab上实现K-均值聚类方法呢?有相应的函数吗?谢谢?[ 本帖最后由 eight 于 2008-4-24 12:52 编辑 ] doc kmeans 原帖由 francisfang 于 2008-4-24 11:56 发表 http://www.chinavib.com/forum/images/common/back.gif
如何在matlab上实现K-均值聚类方法呢?有相应的函数吗?谢谢?
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. 看到了,就是里面的参数设置不是很明白。 这个就自己参照帮助文档琢磨一下吧
[ 本帖最后由 sogooda 于 2008-4-25 10:46 编辑 ]
页:
[1]