Questions tagged «k-means»

7
R中的聚类分析:确定最佳聚类数
作为R的新手,我不太确定如何选择最佳数目的聚类来进行k均值分析。在绘制了以下数据的子集之后,多少个簇才合适?如何执行聚类dendro分析? n = 1000 kk = 10 x1 = runif(kk) y1 = runif(kk) z1 = runif(kk) x4 = sample(x1,length(x1)) y4 = sample(y1,length(y1)) randObs <- function() { ix = sample( 1:length(x4), 1 ) iy = sample( 1:length(y4), 1 ) rx = rnorm( 1, x4[ix], runif(1)/8 ) ry = rnorm( 1, y4[ix], …


By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.