Package org.apache.mahout.clustering

Examples of org.apache.mahout.clustering.JsonDistanceMeasureAdapter


  @Override
  public String asJsonString() {
    GsonBuilder builder = new GsonBuilder();
    builder.registerTypeAdapter(ModelDistribution.class, new JsonModelDistributionAdapter());
    builder.registerTypeAdapter(DistanceMeasure.class, new JsonDistanceMeasureAdapter());
    Gson gson = builder.create();
    return gson.toJson(this, MODEL_DISTRIBUTION_TYPE);
  }
View Full Code Here

TOP

Related Classes of org.apache.mahout.clustering.JsonDistanceMeasureAdapter

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.