Package org.apache.mahout.utils

Examples of org.apache.mahout.utils.ManhattanDistanceMeasure


   *
   * @throws Exception
   */
  public void testIterativeManhattan() throws Exception {
    List<Vector> points = getPoints(raw);
    Canopy.config(new ManhattanDistanceMeasure(), 3.1, 2.1);

    List<Canopy> canopies = new ArrayList<Canopy>();
    for (Vector point : points)
      Canopy.addPointToCanopies(point, canopies);

View Full Code Here

TOP

Related Classes of org.apache.mahout.utils.ManhattanDistanceMeasure

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.