brotli::enc::bit_cost

Function shannon_entropy

source
pub(crate) fn shannon_entropy(
    population: &[u32],
    size: usize,
) -> (floatX, usize)