Examples of sampleToEigenSpace()


Examples of org.bioinfo.ngs.qc.qualimap.beans.PrincipleComponentAnalysis.sampleToEigenSpace()

            double[] cS = pca.sampleToEigenSpace(sample);
            System.out.println("(" + cS[0] + " " + cS[1] + ")");
        } */

        double[] s1 = {x[0],y[0]};
        double[] c1 = pca.sampleToEigenSpace(s1);

        // Expecting (-0.8279702,  0.1751153)
        double c1Len = c1[0]*c1[0] + c1[1]*c1[1];
        assertTrue( c1Len  - 0.7162 < 0.00001);

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.