Skip to main content

zoom_fft

Function zoom_fft 

Source
pub fn zoom_fft(
    x: &[f64],
    f1: f64,
    f2: f64,
    m: usize,
    fs: f64,
    endpoint: bool,
) -> Result<Vec<Complex<f64>>, ErrorsJSL>
Expand description

The DFT of x at m equally spaced frequencies from f1 towards f2 (SciPy’s zoom_fft, with the sample rate fs): the chirp z-transform on an arc of the unit circle starting at a = e^{2πi f1/fs} with ratio w = e^{−2πi (f2 − f1)/(fs m)} ((m − 1) in place of m with endpoint), computed by Bluestein’s algorithm in O((n + m) log(n + m)).