Home
last modified time | relevance | path

Searched refs:xq (Results 1 – 3 of 3) sorted by relevance

/liblc3-latest/test/
Dspec.py48 def get_noise_indices(self, bw, xq, lastnz): argument
55 xq = np.append(xq[:lastnz], np.zeros(len(xq) - lastnz))
56 xq[:nf_start-nf_width] = 1
58 return [ np.all(xq[max(k-nf_width, 0):min(k+nf_width+1, bw_stop)] == 0)
72 (self.g_idx, self.noise_factor, self.xq, self.lastnz,
158 xq = np.where(xg < 0, np.ceil(xg - offset), np.floor(xg + offset))
159 xq = xq.astype(np.int32)
160 xq = np.fmin(np.fmax(xq, xq_min), xq_max)
162 nz_pairs = np.any([ xq[::2] != 0, xq[1::2] != 0 ], axis=0)
163 lastnz = len(xq) - 2 * np.argmax(nz_pairs[-1::-1])
[all …]
Dencoder.py69 (xq, lastnz, x) = self.spec.run(bw, nbytes,
Dsns.py296 xq = [ y / np.sqrt(sum(y ** 2)) for y in (y0, y1, y2, y3) ]
303 dMSE = [ [ sum((t2_rot - G[j][i] * xq[j]) ** 2)
328 scf_q = st1 + gain * fftpack.idct(xq[self.shape], norm = 'ortho')