Package com.numb3r3.common.math

Examples of com.numb3r3.common.math.Matrix.transpose()


        double part2 = Math.pow(det, -0.5);

        Matrix dev = value.sub(mu);

        double part3 = Math.exp(-0.5
                * (dev.transpose().product(cox.inverse())).dot(dev));
        return part1 * part2 * part3;

    }

    public static double mphi(Matrix value, Matrix mu, Matrix cox, Matrix inv) {
View Full Code Here


        double part2 = Math.pow(det, -0.5);

        Matrix dev = value.sub(mu);

        double part3 = Math.exp(-0.5 * (dev.transpose().product(inv)).dot(dev));
        return part1 * part2 * part3;

    }

    /* return phi(x, mu, signma) = Gaussian pdf with mean mu and stddev sigma */
 
View Full Code Here

        System.out.println("ONES: " + ones.dialog());
        System.out.println("SUB: " + ones.sub(InMemoryJBlasMatrix.eye(3)));
        System.out.println("EYE" + InMemoryJBlasMatrix.eye(5));

        Matrix m = InMemoryJBlasMatrix.rand(5, null);
        m = m.product(m.transpose());
        System.out.println(m + "\n");


        System.out.println(m.dialog());
        System.out.println(m.diag());
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.