Skip to main content

decimate

Function decimate 

Source
pub fn decimate(
    x: &[f64],
    q: usize,
    zero_phase: bool,
) -> Result<Vec<f64>, ErrorsJSL>
Expand description

Downsampling by an integer factor q after anti-alias filtering (SciPy’s decimate with ftype='iir'): an order-8 Chebyshev type I lowpass with 0.05 dB ripple and cutoff 0.8/q of Nyquist, applied forwards and backwards (zero_phase) or forwards only, then every q-th sample.