mirror of
https://github.com/romanz/amodem.git
synced 2026-04-01 00:36:50 +08:00
dsp: remove unused code
This commit is contained in:
@@ -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 = {}
|
||||
|
||||
Reference in New Issue
Block a user