Skip to main content

analytic_signal

Function analytic_signal 

Source
pub fn analytic_signal(x: &[f64]) -> Result<Vec<Complex<f64>>, ErrorsJSL>
Expand description

The analytic signal x + i H{x} of a real signal, by the FFT: negative-frequency bins are zeroed and positive ones doubled (DC, and Nyquist for even lengths, kept), as in SciPy’s hilbert. The transform treats x as periodic, so edges show some ringing for non-periodic data.