pub fn msk_bits(phase_states: &[usize]) -> Vec<u8> ⓘExpand description
The information bits of MSK from the terminal phase states of a survivor path
(MlPath::phase_states, in units of $\pi/2$): $d_{n} = \operatorname{Re}
(e^{j \theta_{n}} (-j)^{n})$ for $n = 1 \dots N$, the inverse of msk_precode.
§Examples
use comnum_waveform::cpm::{CpmConfig, msk_bits, msk_precode};
let msk = CpmConfig::msk(4).build()?;
let bits = [1u8, 0, 1, 1, 0, 0, 0, 1];
let path = msk.ml_detect_path(&msk.modulate(&msk_precode(&bits))?)?;
assert_eq!(msk_bits(&path.phase_states), bits);