层次聚类与K均值聚类有何不同?

如题所述

第1个回答  2018-02-02
层次聚类(hierarchical clustering)
这里用最简单的实例说明层次聚类原理和应用方法。
层次聚类是基于距离的聚类方法,MATLAB中通过pdist、linkage、dendrogram、cluster等函数来完成。

K-均值聚类

K-means聚类算法采用的是将N*P的矩阵X划分为K个类,使得所有类内对象与该类中心点之间的距离和最小。

IDX = KMEANS(X, K) partitions the points in the
N-by-P data matrix X
into K
clusters. This partition minimizes the sum, over
all clusters, of
the
within-cluster sums of point-to-cluster-centroid distances.本回答被网友采纳
相似回答