SciPy

This is documentation for an old release of SciPy (version 0.14.0). Read this page in the documentation of the latest stable release (version 1.15.1).

scipy.signal.deconvolve

scipy.signal.deconvolve(signal, divisor)[source]

Deconvolves divisor out of signal.

Parameters:

signal : array

Signal input

divisor : array

Divisor input

Returns:

q : array

Quotient of the division

r : array

Remainder

Examples

>>>
>>> from scipy import signal
>>> sig = np.array([0, 0, 0, 0, 0, 1, 1, 1, 1,])
>>> filter = np.array([1,1,0])
>>> res = signal.convolve(sig, filter)
>>> signal.deconvolve(res, filter)
(array([ 0.,  0.,  0.,  0.,  0.,  1.,  1.,  1.,  1.]),
 array([ 0.,  0.,  0.,  0.,  0.,  0.,  0.,  0.,  0.,  0.,  0.]))