Estimate the average code length and compression efficiency from symbol frequencies per Huffman coding.
輸入頻率(或機率,歸一化後結果一致)。