Package org.apache.mahout.math

Examples of org.apache.mahout.math.DenseVector.asFormatString()


      g2.setStroke(new BasicStroke(i == 0 ? 3 : 1));
      g2.setColor(colors[Math.min(DisplayDirichlet.colors.length - 1, i--)]);
      for (Cluster cluster : cls) {
        // if (true || cluster.getNumPoints() > sampleData.size() * 0.05) {
        dv.assign(cluster.getStd() * 3);
        System.out.println(cluster.getCenter().asFormatString() + ' ' + dv.asFormatString());
        DisplayDirichlet.plotEllipse(g2, cluster.getCenter(), dv);
        // }
      }
    }
  }
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.