Interface IEncode

    • Field Detail

      • LOG

        static final org.apache.commons.logging.Log LOG
    • Method Detail

      • createFromMatrixBlock

        static IEncode createFromMatrixBlock​(MatrixBlock m,
                                             boolean transposed,
                                             int[] rowCols)
      • createFromMatrixBlockDelta

        static IEncode createFromMatrixBlockDelta​(MatrixBlock m,
                                                  boolean transposed,
                                                  int[] rowCols)
      • createFromMatrixBlockDelta

        static IEncode createFromMatrixBlockDelta​(MatrixBlock m,
                                                  boolean transposed,
                                                  int[] rowCols,
                                                  int nVals)
      • createFromMatrixBlock

        static IEncode createFromMatrixBlock​(MatrixBlock m,
                                             boolean transposed,
                                             int rowCol)
      • combine

        IEncode combine​(IEncode e)
        Combine two encodings, note it should be guaranteed by the caller that the number of unique multiplied does not overflow Integer.
        Parameters:
        e - The other side to combine with
        Returns:
        The combined encoding
      • getUnique

        int getUnique()
      • extractFacts

        EstimationFactors extractFacts​(int[] cols,
                                       int nRows,
                                       double tupleSparsity,
                                       double matrixSparsity)
      • isDense

        boolean isDense()
        Signify if the counts are including zero or without zero.
        Returns:
        is dense