SciPy

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.]))