Package org.virus.cvxhull.api.algorithms

Examples of org.virus.cvxhull.api.algorithms.ConvexHullAlgorithm.run()


    public void test(Painter painter) {
        ConvexHullAlgorithm algo = algorithm.newInstance(xs, ys);

        painter.add(algo);
        algo.run();
        painter.repaint();
    }

    public void testLog(Painter painter) {
        ConvexHullAlgorithm algo;
View Full Code Here


        painter.add(algo);
        painter.repaint();

        System.out.printf("\tRunning algorithm with %d elements with an x span of %d and y span of %d\n",
                xs.length, xSpan, ySpan);
        long runTime = algo.run();
        System.out.printf("\tFinished test, took %dms to calculate | O = %f\n" +
                "\tPoints on hull: %d\n",
                runTime, algo.bigO(), algo.getHullArray().length);
    }
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.