nte_bytes

Function nte_bytes 

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

NTE(X,Y) = VI(X,Y) / max(H(X), H(Y)) where VI(X,Y) = H(X|Y) + H(Y|X) = 2H(X,Y) - H(X) - H(Y).

Represents the “effort” required to transform X into Y (and vice versa) relative to their complexity.

Note: VI can be as large as H(X) + H(Y). If H(X) ≈ H(Y), then VI can be ≈ 2 max(H(X), H(Y)). Thus, NTE is in [0, 2].

  • Values near 0 indicate near-identity.
  • Values near 1+ indicate substantial effort/transform cost (e.g. independence).

Dispatches based on max_order.