Class HuffmanCode
- java.lang.Object
-
- htsjdk.samtools.cram.encoding.core.huffmanUtils.HuffmanCode
-
public class HuffmanCode extends Object
-
-
Constructor Summary
Constructors Constructor Description HuffmanCode()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> HuffmanTree<T>
buildTree(int[] charFrequencies, T[] values)
static <T> void
getValuesAndBitLengths(List<T> values, List<Integer> lens, HuffmanTree<T> tree)
-
-
-
Method Detail
-
buildTree
public static <T> HuffmanTree<T> buildTree(int[] charFrequencies, T[] values)
-
getValuesAndBitLengths
public static <T> void getValuesAndBitLengths(List<T> values, List<Integer> lens, HuffmanTree<T> tree)
-
-