equalizer: replace Least-Square solver by Levinson-Durbin recursion

This commit is contained in:
Roman Zeyde
2015-02-18 18:14:57 +02:00
parent 97e992ea56
commit 6a2e320808
4 changed files with 51 additions and 26 deletions

View File

@@ -4,6 +4,7 @@ import numpy as np
import utils
from amodem import equalizer
from amodem import levinson
from amodem import config
config = config.fastest()
@@ -46,8 +47,9 @@ def test_modem():
def test_signal():
length = 100
length = 120
x = np.sign(RandomState(0).normal(size=length))
x[-20:] = 0 # make sure the signal has bounded support
den = np.array([1, -0.6, 0.1])
num = np.array([0.5])
y = utils.lfilter(x=x, b=num, a=den)