Skip to main content

entropy

Function entropy 

Source
pub fn entropy(data: &[u8]) -> f64
Expand description

The Shannon entropy of the byte distribution of data, in bits per byte (0 to 8). Empty input has zero entropy.