Skip to main content

resample

Function resample 

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

Resamples the real signal x to num samples by the FFT (SciPy’s resample): the spectrum is truncated or zero-padded, with the unpaired Nyquist bin of an even length united when downsampling and split when upsampling. Exact for band-limited periodic signals.