diff --git a/amodem/dsp.py b/amodem/dsp.py index 45e1f91..b090980 100644 --- a/amodem/dsp.py +++ b/amodem/dsp.py @@ -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 = {}