Skip to main content

chi_square_score

Function chi_square_score 

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

Chi-square statistic on byte value distribution.

Measures how uniformly distributed the LSBs are. A perfectly random distribution scores low (close to 0 dB below expected).