pub fn cost_bits(bit: bool, p1: u32) -> f64
Ideal code length in bits of coding bit at P(1) = p1 / 2^16.
bit
P(1) = p1 / 2^16