Skip to main content

resample

Function resample 

Source
pub fn resample(x: &[f64], fs_old: f64, fs_new: f64) -> Vec<f64>
Expand description

Resample a signal from fs_old to fs_new using linear interpolation.

For anti-aliasing when downsampling, applies a lowpass filter at the new Nyquist frequency before decimation (like MNE’s raw.resample()).