pub fn state_hash(samples: &[(u64, f64)]) -> u64
State hash over an ordered predictor window, oldest entry first.