Estimate the average code length and compression efficiency from symbol frequencies per Huffman coding.
输入频率(或概率,归一化后结果一致)。