Package org.codemap.internal

Examples of org.codemap.internal.LayoutAlgorithm


        Collection<Point> locations = doLayout ? runLayout(lsi, x, y) : loadCached(lsi, x, y);
        return new Configuration(locations).normalize();
    }

    private Collection<Point> runLayout(LatentSemanticIndex lsi, double[] x, double[] y) {
        LayoutAlgorithm mds = LayoutAlgorithm.fromCorrelationMatrix(lsi, x, y);
        mds.normalize();
        Collection<Point> locations = new ArrayList<Point>();
        int index = 0;
        for (String each: lsi.documents()) {
            locations.add(new Point(mds.x[index], mds.y[index], each));
            index++;
View Full Code Here

TOP

Related Classes of org.codemap.internal.LayoutAlgorithm

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.