joint_entropy_rate_bytes

Function joint_entropy_rate_bytes 

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

Compute joint entropy rate Ĥ(X,Y).

Dispatches based on max_order:

  • max_order == 0: Strictly aligned pair-symbol mapping (Marginal Joint Entropy). Treats (x_i, y_i) as a single symbol in a product alphabet Σ_X × Σ_Y.
  • max_order != 0: Shift-invariant algorithmic joint entropy approximated via ROSA. Constructs a sequence of pair-symbols and estimates the entropy rate of that sequence.

Note: This is an aligned joint entropy-rate estimate over time-indexed pairs (x_i, y_i). All joint-based quantities (H(X), H(Y), H(X,Y), I, NED, NTE, etc.) should be computed over the same aligned sample.