updated code in a few files to make it more understandable, also used .join method at a place to increase the speed.

这个提交包含在:
Sai-Suraj-27
2023-06-23 20:08:13 +05:30
父节点 c0762cc112
当前提交 7e4a4fff34
共有 7 个文件被更改,包括 30 次插入40 次删除

查看文件

@@ -456,7 +456,6 @@ def DLS(logt, rl, im, freq):
d.imag, x[np.newaxis].T).T[0]
cost_i = np.sum(np.abs(ip-im))/len(im)
ee = np.mean(rl - rp)
if ee < 1:
ee = 1
ee = max(ee, 1)
cost_r = np.sum(np.abs(rp + ee - rl))/len(im)
return cost_i, cost_r, x, ee, rp, ip