pub fn markov_1_binary(n: usize, p00: f64, p11: f64, seed: u64) -> Vec<u8> ⓘExpand description
Generate a first-order binary Markov chain.
Theoretical entropy rate: Can be computed from the stationary distribution and transition probabilities.
§Arguments
n- Number of bytes to generate (each 0 or 1)p00- P(next=0 | current=0)p11- P(next=1 | current=1)seed- Random seed for reproducibility
§Returns
Vector of n bytes, each being 0 or 1.