Skip to main content

ewma_state_hash

Function ewma_state_hash 

Source
pub fn ewma_state_hash(alpha: f64, last_t: u64, count: u64, level: f64) -> u64
Expand description

State hash for an EWMA predictor.

The byte order is sample count, alpha bits, last sample tick and smoothed level bits, all little-endian. The Python reference model uses the same order so state hashes agree across implementations.