Skip to main content

chirpz

Function chirpz 

Source
pub fn chirpz<T: IsAnalytic>(
    data_in: &[T],
    m: Option<usize>,
    w: Option<Complex<f64>>,
    a: Option<Complex<f64>>,
) -> Result<C1D, ErrorsJSL>
Expand description

Compute the chirp-z transform of a slice of analytic data.

Arguments:

  • data_in: input sequence
  • m: optional output length; defaults to data_in.len()
  • w: optional complex ratio between successive contour samples; defaults to exp(-j*2*pi/m), which recovers the length-m DFT contour
  • a: optional complex starting point on the contour; defaults to 1 + 0j

Returns:

  • A complex-valued vector of length m

Notes:

  • When m == data_in.len(), a == 1, and w == exp(-j*2*pi/m), this computes the same values as the standard DFT.
  • The input may be real or complex because the function accepts any type implementing IsAnalytic.