From b97663c8b33bbce12926887bf6ddac68fbadb42d Mon Sep 17 00:00:00 2001 From: Travis Oliphant Date: Thu, 5 Jan 2006 08:40:43 +0000 Subject: Remove deconvolve --- numpy/lib/polynomial.py | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'numpy/lib/polynomial.py') diff --git a/numpy/lib/polynomial.py b/numpy/lib/polynomial.py index 83e919263..f875e52f0 100644 --- a/numpy/lib/polynomial.py +++ b/numpy/lib/polynomial.py @@ -284,25 +284,6 @@ def polymul(a1, a2): val = poly1d(val) return val - -def deconvolve(signal, divisor): - """Deconvolves divisor out of signal. Requires numpy.signal library - """ - import scipy.signal - num = atleast_1d(signal) - den = atleast_1d(divisor) - N = len(num) - D = len(den) - if D > N: - quot = []; - rem = num; - else: - input = NX.ones(N-D+1, float) - input[1:] = 0 - quot = numpy.signal.lfilter(num, den, input) - rem = num - NX.convolve(den, quot, mode='full') - return quot, rem - def polydiv(u, v): """Computes q and r polynomials so that u(s) = q(s)*v(s) + r(s) and deg r < deg v. -- cgit v1.2.1