Package org.apache.flink.examples.java.clustering.KMeans

Examples of org.apache.flink.examples.java.clustering.KMeans.Centroid


  public static DataSet<Centroid> getDefaultCentroidDataSet(ExecutionEnvironment env) {
    List<Centroid> centroidList = new LinkedList<Centroid>();
    for (Object[] centroid : CENTROIDS) {
      centroidList.add(
          new Centroid((Integer) centroid[0], (Double) centroid[1], (Double) centroid[2]));
    }
    return env.fromCollection(centroidList);
  }
View Full Code Here

TOP

Related Classes of org.apache.flink.examples.java.clustering.KMeans.Centroid

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.