一个简单易懂的基于k-means的聚类算法,附带data数据文件
public class KMeans
{
private static String fileroute = "D:\WorkSpace\Jee\KMeans-Points\src\data.txt";
private static int itemnum;
private static int K;
private static ArrayList
points = new ArrayList();
private static ArrayList clusters = new ArrayList();
private static double lastE = Double.MAX_VALUE;
请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报