Home
last modified time | relevance | path

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

/liblc3-latest/src/
Dltpf.c474 LC3_HOT static int argmax(const float *x, int n, float *x_max) in argmax() argument
478 *x_max = x[arg = 0]; in argmax()
480 if (*x_max < x[i]) in argmax()
481 *x_max = x[arg = i]; in argmax()
494 const float *x, int n, float w_incr, float *x_max) in argmax_weighted() argument
498 float xw_max = (*x_max = x[arg = 0]); in argmax_weighted()
503 xw_max = (*x_max = x[arg = i]) * w; in argmax_weighted()
Dspec.c136 float x_max = sqrtf(x2_max); in estimate_gain() local
138 lc3_ldexpf(x_max, -reg_bits) * lc3_exp2f(-low_bits) : 0; in estimate_gain()
178 if (x_lim * unquantize_gain(*g_min - i) > x_max) in estimate_gain()
181 *reset_off = g_int < *g_min || x_max == 0; in estimate_gain()
/liblc3-latest/test/
Dspec.py134 x_max = np.amax(np.abs(x))
135 if x_max > 0:
137 g_min = 28 * np.log10(x_max / x_lim)