Package org.ejml.data

Examples of org.ejml.data.D1Matrix64F


         * We use the Gaussian distribution of the parent GMM to create the
         * children.
         */

        /* Get mean and variance from parent before we allocate resized data structures. */
        D1Matrix64F mean = MatrixOps.doubleArrayToMatrix(this.components[0]
                .getMean());
        D1Matrix64F variance = MatrixOps.doubleArrayToMatrix(this.components[0]
                .getVariance());

        /* Throw away all previous data structures. */
        allocateTrainDataStructures(newNumComponents);

View Full Code Here


            /*
             * Estimate the variance. sigma_sq = 1/n (sumxsq - 1/n sumx^2) or
             * 1/n sumxsq - mean^2.
             */
            D1Matrix64F tmp = variance; // borrow as an intermediate array.

            MatrixOps.elementSquare(mean, tmpArray);
            CommonOps.scale(1.0 / numSamples, sumxsq, tmp);

            CommonOps.sub(tmp, tmpArray, variance);
View Full Code Here

TOP

Related Classes of org.ejml.data.D1Matrix64F

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.