List<Cluster> initialClusters = Lists.newArrayList();
int id = 0;
for (Vector point : points) {
initialClusters.add(new org.apache.mahout.clustering.kmeans.Kluster(point, id++, measure));
}
ClusterClassifier prior = new ClusterClassifier(initialClusters, new KMeansClusteringPolicy(convergenceDelta));
Path priorPath = new Path(output, Cluster.INITIAL_CLUSTERS_DIR);
prior.writeToSeqFiles(priorPath);
ClusterIterator.iterateSeq(conf, samples, priorPath, output, maxIterations);
loadClustersWritable(output);