pub fn entropy(&self) -> f64 {
        -self
            .hbook
            .values()
            .map(|SymbolInfo { weight, .. }| weight * weight.log2())
            .sum::<f64>()
    }
/// Entropy of the original stream.
Entropy of the original stream.
Entropy of the original stream .
pub fn entropy(&self) -> f64 {
        -self
            .hbook
            .values()
            .map(|SymbolInfo { weight, .. }| weight * weight.log2())
            .sum::<f64>()
    }
pub fn entropy ( & self ) -> f64 { - self . hbook . values ( ) . map ( | SymbolInfo { weight , .. } | weight * weight . log2 ( ) ) . sum :: < f64 > ( ) }
Entropy of the original stream.
Entropy of the original stream .
&self
&self