Package org.apache.mahout.matrix

Examples of org.apache.mahout.matrix.Vector.clone()


  public boolean shiftToMean() {
    Vector centroid = computeCentroid();
    converged = new EuclideanDistanceMeasure().distance(centroid, getCenter()) < convergenceDelta;
    setCenter(centroid);
    setNumPoints(1);
    setPointTotal(centroid.clone());
    return converged;
  }

  @Override
  public String toString() {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.