Package edu.ucla.sspace.matrix.TransformStatistics

Examples of edu.ucla.sspace.matrix.TransformStatistics.MatrixStatistics


        /**
         * Creates an instance of {@code LogLikelihoodTransform} from a given
         * {@link Matrix}.
         */
        public LogLikelihoodGlobalTransform(Matrix matrix) {
            MatrixStatistics stats =
                TransformStatistics.extractStatistics(matrix);
            rowCounts = stats.rowSums;
            colCounts = stats.columnSums;
            matrixSum = stats.matrixSum;
        }
View Full Code Here


         * from a matrix {@code File} of format {@code format}.
         */
        public LogLikelihoodGlobalTransform(
                File inputMatrixFile,
                MatrixIO.Format format) {
            MatrixStatistics stats =
                TransformStatistics.extractStatistics(inputMatrixFile, format);
            rowCounts = stats.rowSums;
            colCounts = stats.columnSums;
            matrixSum = stats.matrixSum;
        }
View Full Code Here

        /**
         * Creates an instance of {@code TfIdfGlobalTransform} from a {@link
         * Matrix}.
         */
        public TfIdfGlobalTransform(Matrix matrix) {
            MatrixStatistics stats =
                TransformStatistics.extractStatistics(matrix, false, true);
            docTermCount = stats.rowSums;
            termDocCount = stats.columnSums;
            totalDocCount = docTermCount.length;
        }
View Full Code Here

        /**
         * Creates an instance of {@code TfIdfGlobalTransform} from a {@code
         * File} in the format {@link Format}.
         */
        public TfIdfGlobalTransform(File inputMatrixFile, Format format) {
            MatrixStatistics stats = TransformStatistics.extractStatistics(
                    inputMatrixFile, format, false, true);
            docTermCount = stats.rowSums;
            termDocCount = stats.columnSums;
            totalDocCount = docTermCount.length;
        }
View Full Code Here

        /**
         * Creates an instance of {@code TfIdfGlobalTransform} from a {@link
         * Matrix}.
         */
        public TfIdfGlobalTransform(Matrix matrix) {
            MatrixStatistics stats =
                TransformStatistics.extractStatistics(matrix, true, false);
            docTermCount = stats.columnSums;
            termDocCount = stats.rowSums;
            totalDocCount = docTermCount.length;
        }
View Full Code Here

        /**
         * Creates an instance of {@code TfIdfGlobalTransform} from a {@code
         * File} in the format {@link Format}.
         */
        public TfIdfGlobalTransform(File inputMatrixFile, Format format) {
            MatrixStatistics stats = TransformStatistics.extractStatistics(
                    inputMatrixFile, format, true, false);
            docTermCount = stats.columnSums;
            termDocCount = stats.rowSums;
            totalDocCount = docTermCount.length;
        }
View Full Code Here

        /**
         * Creates an instance of {@code CorrelationTransform} from a {@link
         * Matrix}.
         */
        public CorrelationGlobalTransform(Matrix matrix) {
            MatrixStatistics stats =
                TransformStatistics.extractStatistics(matrix);
            rowSums = stats.rowSums;
            colSums = stats.columnSums;
            totalSum = stats.matrixSum;
        }
View Full Code Here

         * Creates an instance of {@code CorrelationTransform} from a {@code
         * File} for format {@link Format}.
         */
        public CorrelationGlobalTransform(File inputMatrixFile,
                                          Format format) {
            MatrixStatistics stats =
                TransformStatistics.extractStatistics(inputMatrixFile, format);
            rowSums = stats.rowSums;
            colSums = stats.columnSums;
            totalSum = stats.matrixSum;
        }
View Full Code Here

        /**
         * Creates an instance of {@code PointWiseMutualInformationTransform}
         * from a given {@link Matrix}.
         */
        public PointWiseMutualInformationGlobalTransform(Matrix matrix) {
            MatrixStatistics stats =
                TransformStatistics.extractStatistics(matrix);
            rowCounts = stats.rowSums;
            colCounts = stats.columnSums;
            matrixSum = stats.matrixSum;
        }
View Full Code Here

         * from a matrix {@code File} of format {@code format}.
         */
        public PointWiseMutualInformationGlobalTransform(
                File inputMatrixFile,
                MatrixIO.Format format) {
            MatrixStatistics stats =
                TransformStatistics.extractStatistics(inputMatrixFile, format);
            rowCounts = stats.rowSums;
            colCounts = stats.columnSums;
            matrixSum = stats.matrixSum;
        }
View Full Code Here

TOP

Related Classes of edu.ucla.sspace.matrix.TransformStatistics.MatrixStatistics

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.