/** * Estimated the compressed size of one block of integers using PForDelta * */ private int PForDeltaEstimateCompSize(int[] srcData, int b) { return PForDelta.estimateCompressedSize(srcData, b, _blockSize); }
/** * Estimated the compressed size of one block of integers using PForDelta * */ private int PForDeltaEstimateCompSize(int[] srcData, int b) { return PForDelta.estimateCompressedSize(srcData, b, _blockSize); }
/** * Estimate the compressed size of a block * * @param inputBlock a block of non-negative integers to be compressed * @param bits the value of b in the PForDelta algorithm * @param blockSize the block size which is 256 by default * @return CompResult * @throws IllegalArgumentException */ public int estimateCompSize(int[] inputBlock, int bits, int blockSize) throws IllegalArgumentException { return PForDelta.estimateCompressedSize(inputBlock, bits, blockSize); }
int optSize = estimateCompressedSize(inBlock, tmpB, blockSize); for (int i = 1; i < POSSIBLE_B.length; ++i) int curSize = estimateCompressedSize(inBlock, tmpB, blockSize); if(curSize < optSize)
+ currentB); } else { int optSize = estimateCompressedSize(inBlock, tmpB, blockSize); for (int i = 1; i < POSSIBLE_B.length; ++i) { tmpB = POSSIBLE_B[i]; int curSize = estimateCompressedSize(inBlock, tmpB, blockSize); if (curSize < optSize) {
int optSize = estimateCompressedSize(inBlock, tmpB, blockSize); for (int i = 1; i < POSSIBLE_B.length; ++i) int curSize = estimateCompressedSize(inBlock, tmpB, blockSize); if(curSize < optSize)
+ currentB); } else { int optSize = estimateCompressedSize(inBlock, tmpB, blockSize); for (int i = 1; i < POSSIBLE_B.length; ++i) { tmpB = POSSIBLE_B[i]; int curSize = estimateCompressedSize(inBlock, tmpB, blockSize); if (curSize < optSize) {
int optSize = estimateCompressedSize(inBlock, tmpB, blockSize); for (int i = 1; i < POSSIBLE_B.length; ++i) int curSize = estimateCompressedSize(inBlock, tmpB, blockSize); if(curSize < optSize)