Function code_length_of_histogram32

Source
pub fn code_length_of_histogram32(histogram: &Histogram32, total: u64) -> f64
Expand description

Calculates the ideal code length in bits for a given histogram. This lets us estimate how compressible the data is during ‘entropy coding’ steps.

See shannon_entropy_of_histogram32 for more details; this is just a wrapper around that function.