Skip to main content

gmsk_phase

Function gmsk_phase 

Source
pub fn gmsk_phase(t: f64, bt: f64) -> f64
Expand description

The phase response of the Gaussian pulse, $q(t) = \int_{-\infty}^{t} g(\tau) \, d\tau$ in closed form (0 at $-\infty$, $1/4$ at 0, $1/2$ at $+\infty$).

ยงExamples

use comnum_waveform::cpm::gmsk_phase;
assert!((gmsk_phase(0.0, 0.3) - 0.25).abs() < 1e-12);
assert!((gmsk_phase(10.0, 0.3) - 0.5).abs() < 1e-12);