Class HuffmanBitCode<T>
java.lang.Object
htsjdk.samtools.cram.encoding.core.huffmanUtils.HuffmanBitCode<T>
- Type Parameters:
T
- type of the symbols in the alphabet being huffman-encoded
Huffman bit code word consisting of a symbol, the corresponding codeword and codeword bit length.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
HuffmanBitCode
-
-
Method Details
-
getSymbol
- Returns:
- the symbol for this bit code
-
getCodeWord
public int getCodeWord()- Returns:
- the codeword for this bit code
-
getCodeWordBitLength
public int getCodeWordBitLength()- Returns:
- the codeword bit length for this bit code
-
toString
-
getBitCodeWithPrefix
- Returns:
- the codeword for this bit code as a String, padded out to
codeWordBitLength
with leading zeros
-