T - type of the symbols in the alphabet being huffman-encodedpublic class HuffmanParamsCalculator<T>
extends java.lang.Object
| Constructor and Description |
|---|
HuffmanParamsCalculator() |
| Modifier and Type | Method and Description |
|---|---|
void |
addSymbolObservations(T symbol,
int numberOfObservations)
Record one or more observations of a given symbol in the input stream.
|
HuffmanParams<T> |
getHuffmanParams() |
public void addSymbolObservations(T symbol, int numberOfObservations)
symbol - symbol observednumberOfObservations - number of observationspublic HuffmanParams<T> getHuffmanParams()