mne.filter.
resample
(x, up, down, npad=100, axis=-1, window=’boxcar’, n_jobs=1, verbose=None)[source]¶Resample an array.
Operates along the last dimension of the array.
Parameters: | x : n-d array
up : float
down : float
npad : int | str
axis : int
window : string or tuple
n_jobs : int | str
verbose : bool, str, int, or None
|
---|---|
Returns: | xf : array
|
Notes
This uses (hopefully) intelligent edge padding and frequency-domain windowing improve scipy.signal.resample’s resampling method, which we have adapted for our use here. Choices of npad and window have important consequences, and the default choices should work well for most natural signals.
Resampling arguments are broken into “up” and “down” components for future compatibility in case we decide to use an upfirdn implementation. The current implementation is functionally equivalent to passing up=up/down and down=1.