Skip to main content

qpsk

Function qpsk 

Source
pub fn qpsk(rng: &mut Rng) -> C64
Expand description

One unit-energy QPSK point $e^{j\pi(2i + 1)/4}$, $i$ uniform in 0..4 (one draw of Rng::below): the pilots and preambles drawn from a seed.

ยงExamples

use comnum_core::rng::Rng;
let s = comnum_mapping::source::qpsk(&mut Rng::new(1));
assert!((s.norm() - 1.0).abs() < 1e-15 && (s.re.abs() - s.im.abs()).abs() < 1e-15);