Skip to main content

incompressibility_ratio

Function incompressibility_ratio 

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

The incompressibility ratio K̄(x)/n for an n-byte string — the shortest menu description measured against storing the bytes raw (the incompressible size for byte material). ≈ 1.0 ⇒ incompressible (no exploitable structure of this class); well below 1.0 ⇒ compressible (a short, predictable description exists).