conditional_entropy_rate_bytes

Function conditional_entropy_rate_bytes 

Source
pub fn conditional_entropy_rate_bytes(x: &[u8], y: &[u8], max_order: i64) -> f64
Expand description

Compute conditional entropy rate Ĥ(X|Y).

Dispatches based on max_order:

  • max_order == 0: Strictly aligned H(X,Y) - H(Y) using marginals.
  • max_order != 0: Chain rule definition Ĥ(X|Y) = Ĥ(X,Y) - Ĥ(Y).

Note: This relies on the identity H(X|Y) = H(X,Y) - H(Y).