dsp: remove unused code

This commit is contained in:
Roman Zeyde
2014-08-26 17:25:13 +03:00
parent f382efe609
commit 771692126c

View File

@@ -4,7 +4,6 @@ import logging
log = logging.getLogger(__name__)
from . import sampling
from . import common
from .config import Ts, Nsym
@@ -51,13 +50,6 @@ def estimate(x, y, order, lookahead=0):
return h[::-1]
def train(S, training):
A = np.array([S[1:], S[:-1], training[:-1]]).T
b = training[1:]
b0, b1, a1 = linalg.lstsq(A, b)[0]
return Filter(b=[b0, b1], a=[1, -a1])
class QAM(object):
def __init__(self, symbols):
self._enc = {}