scipy.signal.decimate(x, q, n=None, ftype='iir', axis=-1)

downsample the signal x by an integer factor q, using an order n filter

By default an order 8 Chebyshev type I filter is used or a 30 point FIR filter with hamming window if ftype is ‘fir’.

Parameters :

x : N-d array

the signal to be downsampled

q : int

the downsampling factor

n : int or None

the order of the filter (1 less than the length for ‘fir’)

ftype : {‘iir’ or ‘fir’}

the type of the lowpass filter

axis : int

the axis along which to decimate

Returns :

y : N-d array

the down-sampled signal

See also: resample :

Previous topic


Next topic


This Page