Skip to content

Commit 622652b

Browse files
committed
removed debugging code
1 parent b25b63c commit 622652b

1 file changed

Lines changed: 0 additions & 27 deletions

File tree

soundwave/algorithms/least_mean_squares.py

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -62,33 +62,6 @@ def rls(inputSignal, targetSignal, mu, n):
6262
return y, e
6363

6464
def crls(inputSignal, targetSignal, mu, n):
65-
w = np.zeros(n)
66-
x = inputSignal
67-
N = len(x)
68-
d = targetSignal
69-
x = np.array(x)
70-
d = np.array(d)
71-
y = np.zeros(N)
72-
e = np.zeros(N)
73-
eps = 0.1
74-
R = 1/eps * np.identity(n)
75-
for k in range(N):
76-
y[k] = np.dot(w, x[k])
77-
e[k] = d[k] - y[k]
78-
blah = np.dot(R, x[k])
79-
blah2 = np.dot(blah, x[k].T)
80-
blah3 = np.dot(blah2, R)
81-
R1 = np.dot(np.dot(np.dot(R,x[k]),x[k].T),R)
82-
83-
84-
blah4 = np.dot(x[k],R)
85-
blah5 = np.dot(np.dot(x[k],R),x[k].T)
86-
R2 = mu + np.dot(np.dot(x[k],R),x[k].T)
87-
88-
R = 1/mu * (R - R1/R2)
89-
dw = np.dot(R, x[k].T) * e[k]
90-
w += dw
91-
9265
length = inputSignal.shape[0]
9366
libname = pathlib.Path().absolute() / "libclms.so"
9467
c_float_p = ctypes.POINTER(ctypes.c_float)

0 commit comments

Comments
 (0)