Searched refs:sum (Results 1 – 8 of 8) sorted by relevance
/liblc3-latest/test/ |
D | sns.py | 161 e_4[0 ] = w[0] * e_l[0] + np.sum(w[1:] * e_l[:5]) 162 e_4[1:15] = [ np.sum(w * e_l[4*i-1:4*i+5]) for i in range(1, 15) ] 163 e_4[ 15] = np.sum(w[:5] * e_l[59:64]) + w[5] * e_l[63] 207 dmse_lf = [ np.sum((scf[:8] - T.SNS_LFCB[i]) ** 2) for i in range(32) ] 208 dmse_hf = [ np.sum((scf[8:] - T.SNS_HFCB[i]) ** 2) for i in range(32) ] 225 proj_fac = (K - 1) / sum(np.abs(t2_rot)) 230 corr_xy = np.sum(y3 * x) 231 energy_y = np.sum(y3 * y3) 233 k0 = sum(y3) 248 for k in range(sum(y2), K): [all …]
|
D | energy.py | 36 e_lo = np.sum(e[:len(e) - [2, 3, 4, 2][self.dt]]) 37 e_hi = np.sum(e[len(e) - [2, 3, 4, 2][self.dt]:])
|
D | tns.py | 136 nbits_coef = sum([ T.TNS_COEF_BITS[k][rc[k]] 158 e = [ sum(x[S[s]:S[s+1]] ** 2) for s in range(len(S)-1) ] 160 for k in range(len(r) if sum(e) > 0 else 0): 164 r[k] = np.sum( np.array(c) / np.array(e) ) 175 rc = -sum(a[:k] * r[k:0:-1]) / err
|
D | attdet.py | 62 x_att = np.array([ np.sum(x[i*r:(i+1)*r]) for i in range(mf) ]) 75 e_att = np.array([ np.sum(np.square(x_hp[40*i:40*(i+1)]))
|
D | spec.py | 97 M0 = np.sum(np.abs(x)) + 1e-5 98 M1 = np.sum(np.arange(len(x)) * np.abs(x)) + 1e-5 104 e = [ np.sum(x[4*k:4*(k+1)] ** 2) for k in range(len(x) // 4) ] 280 l_nf = sum(abs(x[:len(i_nf)] * i_nf)) / sum(i_nf) \ 281 if sum(i_nf) > 0 else 0 588 nf_seed = sum(abs(x.astype(np.intc)) * range(len(x)))
|
/liblc3-latest/tables/ |
D | mktables.py | 193 print('... Gain:', np.max(np.sum(np.abs(h), axis=1)) / 32768.) 211 print('... Gain:', np.max(np.sum(np.abs(h), axis=1)) / 32768.)
|
/liblc3-latest/src/ |
D | spec.c | 721 float sum = 0; in estimate_noise() local 727 sum += fabsf(x[i - w]), ns++; in estimate_noise() 732 sum += fabsf(x[i - w]), ns++; in estimate_noise() 734 int nf = ns ? 8 - (int)((16 * sum) / ns + 0.5f) : 8; in estimate_noise()
|
/liblc3-latest/python/ |
D | lc3.py | 345 if not abs(sum(pcm)) / frame_samples < 2:
|