mirror of
https://github.com/romanz/amodem.git
synced 2026-02-06 16:48:06 +08:00
dsp: add new-line
This commit is contained in:
@@ -47,6 +47,7 @@ def estimate(x, y, order, lookahead=0):
|
||||
h = linalg.lstsq(np.array(A).T, b)[0]
|
||||
return h[::-1]
|
||||
|
||||
|
||||
def train(S, training):
|
||||
A = np.array([S[1:], S[:-1], training[:-1]]).T
|
||||
b = training[1:]
|
||||
@@ -109,6 +110,7 @@ class QAM(object):
|
||||
error_handler(received=S, decoded=decoded_symbol)
|
||||
yield bits
|
||||
|
||||
|
||||
class Demux(object):
|
||||
def __init__(self, src, freqs):
|
||||
interp = sampling.Interpolator()
|
||||
|
||||
Reference in New Issue
Block a user