for(int k=0;k<clusters.length;k++){ double eucDistance = dataPoints.get(j).testEuclideanDistance(clusters[k].getMedoid()); if(eucDistance<minDistance){ minDistance = eucDistance; clusterIndex = k; } } //将样本点添加到该类簇中 clusters[clusterIndex].addDataPoint(dataPoints.get(j)); }...