periodic

Function periodic 

Source
pub fn periodic(n: usize, pattern: &[u8]) -> Vec<u8> โ“˜
Expand description

Generate a periodic sequence by repeating a pattern.

Theoretical entropy rate: Approaches 0 as context order โ†’ โˆž. For order >= pattern length, H_rate = 0.

ยงArguments

  • n - Total length of output
  • pattern - The pattern to repeat