Home
last modified time | relevance | path

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

/liblc3-latest/test/
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
69 ok = True
72 ok = ok and np.amax(np.abs(1 - e/C.E_B[i0][0])) < 1e-6
75 ok = ok and np.amax(np.abs(1 - e/C.E_B[i0][1])) < 1e-6
77 return ok
83 ok = True
87 ok = ok and check_unit(rng, dt, sr)
[all …]
Dmdct.py107 ok = True
121 ok = ok and np.amax(np.abs(y[0] - y_c[0])) < 1e-5
122 ok = ok and np.amax(np.abs(y[1] - y_c[1])) < 1e-5
124 return ok
132 ok = True
138 ok = ok and np.amax(np.abs(y - C.X[i0][0])) < 1e-1
141 ok = ok and np.amax(np.abs(y - C.X[i0][1])) < 1e-1
143 return ok
150 ok = True
164 ok = ok and np.amax(np.abs(y[0] - y_c[0])) < 1e-5
[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
157 ok = True
[all …]
Dspec.py621 ok = True
644 ok = ok and (g_int_c == g_int or mismatch_count <= 1)
645 ok = ok and (reset_off_c == reset_off or mismatch_count <= 1)
647 return ok
651 ok = True
664 ok = ok and np.amax(np.abs(1 - xg_c/xg)) < 1e-6
665 ok = ok and nq_c == nq
667 return ok
671 ok = True
695 ok = ok and nbits_c == nbits
[all …]
Dtns.py357 ok = True
373 ok = ok and data_c['lpc_weighting'] == analysis.lpc_weighting
374 ok = ok and data_c['nfilters'] == analysis.nfilters
379 ok = ok and rc_order_c == rc_order
380 ok = ok and not np.any(rc_c[:rc_order] - analysis.rc[f][:rc_order])
382 ok = ok and lc3.tns_get_nbits(data_c) == analysis.get_nbits()
383 ok = ok and np.amax(np.abs(y_c - y)) < 1e-2
385 return ok
389 ok = True
405 ok = ok and np.amax(np.abs(y_c - y) < 1e-4)
[all …]
Dbwdet.py100 ok = True
132 ok = ok and bw_c == bwdet.run(e)
134 return ok
141 ok = True
147 ok = ok and bw == P_BW[0]
150 ok = ok and bw == P_BW[1]
152 return ok
158 ok = True
161 ok = ok and check_unit(rng, dt, sr)
164 ok = ok and check_appendix_c(dt)
[all …]
Dsns.py497 ok = True
515 ok = ok and data_c[k] == data[k]
517 ok = ok and lc3.sns_get_nbits() == analysis.get_nbits()
518 ok = ok and np.amax(np.abs(y - y_c)) < 1e-1
528 ok = ok and data_c[k] == data[k]
530 ok = ok and lc3.sns_get_nbits() == analysis.get_nbits()
531 ok = ok and np.amax(np.abs(y - y_c)) < 1e-1
533 return ok
537 ok = True
561 ok = ok and np.amax(np.abs(1 - y/y_c)) < 1e-5
[all …]
Dltpf.py457 ok = True
474 ok = ok and np.amax(np.abs(y_c[-r.d-r.n:] - y[:r.d+r.n]/2)) < 4
476 return ok
483 ok = True
496 ok = ok and np.amax(np.abs(u - C.X_TILDE_12K8D[i0][0]/2)) < 2
503 ok = ok and np.amax(np.abs(u - C.X_TILDE_12K8D[i0][1]/2)) < 2
505 return ok
511 ok = True
531 ok = ok and (not pitch_present or state_c['tc'] == ltpf.tc)
532 ok = ok and np.amax(np.abs(state_c['nc'][0] - ltpf.nc[0])) < 1e-1
[all …]
Drun.py21 ok = True variable
38 ok = ok and ret variable
40 exit(0 if ok else 1)
Ddecoder.py101 ok = True
106 ok = ok and np.max(np.abs(pcm - C.X_HAT_CLIP[i0][i])) < 1
108 return ok
112 ok = True
115 ok = ok and check_appendix_c(dt)
117 return ok
Dencoder.py109 ok = True
114 ok = ok and data == C.BYTES_AC[i0][i]
116 return ok
120 ok = True
123 ok = ok and check_appendix_c(dt)
125 return ok