Home
last modified time | relevance | path

Searched refs:ok (Results 1 – 11 of 11) sorted by relevance

/liblc3-3.5.0-3.4.0/test/
Dmdct.py98 ok = True
112 ok = ok and np.amax(np.abs(y[0] - y_c[0])) < 1e-5
113 ok = ok and np.amax(np.abs(y[1] - y_c[1])) < 1e-5
115 return ok
123 ok = True
126 ok = ok and np.amax(np.abs(y - C.X[dt][0])) < 1e-1
129 ok = ok and np.amax(np.abs(y - C.X[dt][1])) < 1e-1
131 return ok
138 ok = True
152 ok = ok and np.amax(np.abs(y[0] - y_c[0])) < 1e-5
[all …]
Denergy.py46 ok = True
54 ok = ok and np.amax(np.abs(e_c - e)) < 1e-5 and nn_c == nn
60 ok = ok and np.amax(np.abs(e_c - e)) < 1e-3 and nn_c == nn
62 return ok
67 ok = True
70 ok = ok and np.amax(np.abs(1 - e/C.E_B[dt][0])) < 1e-6
73 ok = ok and np.amax(np.abs(1 - e/C.E_B[dt][1])) < 1e-6
75 return ok
81 ok = True
85 ok = ok and check_unit(rng, dt, sr)
[all …]
Dtns.py304 ok = True
319 ok = ok and data_c['nfilters'] == analysis.nfilters
320 ok = ok and data_c['lpc_weighting'] == analysis.lpc_weighting
325 ok = ok and rc_order_c == rc_order
326 ok = ok and not np.any((rc_c - analysis.rc[f])[:rc_order])
328 ok = ok and lc3.tns_get_nbits(data_c) == analysis.get_nbits()
329 ok = ok and np.amax(np.abs(y_c - y)) < 1e-2
331 return ok
335 ok = True
349 ok = ok and np.amax(np.abs(y_c - y) < 1e-6)
[all …]
Dattdet.py106 ok = True
117 ok = ok and f_att == attdet.is_enabled(nbytes)
119 return ok
124 ok = True
145 ok = ok and f_att_c == f_att
146 ok = ok and np.amax(np.abs(1 - state_c['en1']/attdet.en1)) < 2
147 ok = ok and np.amax(np.abs(1 - state_c['an1']/attdet.an1)) < 2
148 ok = ok and state_c['p_att'] == attdet.p_att
150 return ok
160 ok = f_att == C.F_ATT[dt][0]
[all …]
Dspec.py577 ok = True
595 ok = ok and g_int_c == g_int
596 ok = ok and reset_off_c == reset_off
598 return ok
603 ok = True
615 ok = ok and np.amax(np.abs(1 - xg_c/xg)) < 1e-6
616 ok = ok and np.any(abs(xq_c - xq) < 1)
617 ok = ok and nq_c == nq
619 return ok
624 ok = True
[all …]
Dsns.py462 ok = True
477 ok = ok and data_c[k] == data[k]
479 ok = ok and lc3.sns_get_nbits() == analysis.get_nbits()
480 ok = ok and np.amax(np.abs(y - y_c)) < 1e-1
482 return ok
486 ok = True
509 ok = ok and np.amax(np.abs(y - y_c)) < 2e0
511 return ok
516 ok = True
521 ok = ok and np.amax(np.abs(scf - C.SCF[dt][i])) < 1e-4
[all …]
Dbwdet.py96 ok = True
128 ok = ok and bw_c == bwdet.run(e)
130 return ok
135 ok = True
141 ok = ok and bw == P_BW[0]
144 ok = ok and bw == P_BW[1]
146 return ok
152 ok = True
155 ok = ok and check_unit(rng, dt, sr)
158 ok = ok and check_appendix_c(dt)
[all …]
Dltpf.py446 ok = True
463 ok = ok and np.amax(np.abs(y_c[-r.d-r.n:] - y[:r.d+r.n]/2)) < 4
465 return ok
470 ok = True
483 ok = ok and np.amax(np.abs(u - C.X_TILDE_12K8D[dt][0]/2)) < 2
490 ok = ok and np.amax(np.abs(u - C.X_TILDE_12K8D[dt][1]/2)) < 2
492 return ok
498 ok = True
518 ok = ok and (not pitch_present or state_c['tc'] == ltpf.tc)
519 ok = ok and np.amax(np.abs(state_c['nc'][0] - ltpf.nc[0])) < 1e-2
[all …]
Drun.py21 ok = True variable
38 ok = ok and ret variable
40 exit(0 if ok else 1)
Ddecoder.py103 ok = True
110 ok = ok and np.max(np.abs(pcm - C.X_HAT_CLIP[dt][i])) < 1
112 return ok
116 ok = True
119 ok = ok and check_appendix_c(dt)
121 return ok
Dencoder.py111 ok = True
118 ok = ok and data == C.BYTES_AC[dt][i]
120 return ok
124 ok = True
127 ok = ok and check_appendix_c(dt)
129 return ok