Skip to main content

digram_analysis

Function digram_analysis 

Source
pub fn digram_analysis(data_a: &[u8], data_b: &[u8]) -> DigramAnalysis
Expand description

Compute digram chi-squared statistics for both streams.

Returns NaN for chi-squared values when the sample is too small for the chi-squared approximation to be valid (expected count per bin < 5).