diff options
author | Travis Oliphant <oliphant@enthought.com> | 2006-01-05 08:40:43 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2006-01-05 08:40:43 +0000 |
commit | b97663c8b33bbce12926887bf6ddac68fbadb42d (patch) | |
tree | 647f865a803cc6b731e3e46168d46e5b5ae19568 /numpy/lib/polynomial.py | |
parent | 4dd79b090e85566d3d3290357c3a9bbdd2558dc1 (diff) | |
download | numpy-b97663c8b33bbce12926887bf6ddac68fbadb42d.tar.gz |
Remove deconvolve
Diffstat (limited to 'numpy/lib/polynomial.py')
-rw-r--r-- | numpy/lib/polynomial.py | 19 |
1 files changed, 0 insertions, 19 deletions
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. |