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. A 30 point FIR filter with hamming window is used 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


Previous topic


Next topic


This Page