Interface IEncode
- 
- All Known Implementing Classes:
- ConstEncoding,- DenseEncoding,- EmptyEncoding,- SparseEncoding
 
 public interface IEncodeThis interface covers an intermediate encoding for the samples to improve the efficiency of the joining of sample column groups.
- 
- 
Field SummaryFields Modifier and Type Field Description static org.apache.commons.logging.LogLOG
 - 
Method SummaryAll Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description IEncodecombine(IEncode e)Combine two encodings, note it should be guaranteed by the caller that the number of unique multiplied does not overflow Integer.static IEncodecreateFromMatrixBlock(MatrixBlock m, boolean transposed, int rowCol)static IEncodecreateFromMatrixBlock(MatrixBlock m, boolean transposed, int[] rowCols)static IEncodecreateFromMatrixBlockDelta(MatrixBlock m, boolean transposed, int[] rowCols)static IEncodecreateFromMatrixBlockDelta(MatrixBlock m, boolean transposed, int[] rowCols, int nVals)EstimationFactorsextractFacts(int[] cols, int nRows, double tupleSparsity, double matrixSparsity)intgetUnique()booleanisDense()Signify if the counts are including zero or without zero.
 
- 
- 
- 
Method Detail- 
createFromMatrixBlockstatic IEncode createFromMatrixBlock(MatrixBlock m, boolean transposed, int[] rowCols) 
 - 
createFromMatrixBlockDeltastatic IEncode createFromMatrixBlockDelta(MatrixBlock m, boolean transposed, int[] rowCols) 
 - 
createFromMatrixBlockDeltastatic IEncode createFromMatrixBlockDelta(MatrixBlock m, boolean transposed, int[] rowCols, int nVals) 
 - 
createFromMatrixBlockstatic IEncode createFromMatrixBlock(MatrixBlock m, boolean transposed, int rowCol) 
 - 
combineIEncode 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
 
 - 
getUniqueint getUnique() 
 - 
extractFactsEstimationFactors extractFacts(int[] cols, int nRows, double tupleSparsity, double matrixSparsity) 
 - 
isDenseboolean isDense() Signify if the counts are including zero or without zero.- Returns:
- is dense
 
 
- 
 
-