Skip to main content

group_delay

Function group_delay 

Source
pub fn group_delay(
    b: &[f64],
    a: &[f64],
    w: &[f64],
) -> Result<Vec<f64>, ErrorsJSL>
Expand description

The group delay −dφ/dω of the filter b(z)/a(z) in samples at the normalised angular frequencies w (radians per sample) (SciPy’s group_delay). With c = b ∗ reverse(conj(a)), τ(ω) = Re(Σ k cₖ e^{−iωk} / Σ cₖ e^{−iωk}) − (len(a) − 1); at frequencies where the denominator vanishes the delay is set to 0, as in SciPy.