Lines Matching refs:coef

63 	double  *coef)			// filter coefficients
74 coef[i] = sin(bandwidth * alpha) / (M_PI * alpha);
79 coef[i] = sin(bandwidth * alpha) / (M_PI * alpha);
81 coef[i++] = bandwidth / M_PI;
84 coef[i] = coef[order - i];
88 * poly_conv() = coef[0] * data[length - 1] +
89 * coef[inc_coef] * data[length - 2] +
91 * coef[(length - 1) * inc_coef] * data[0] +
93 * convolution of coef[order + 1] and data[length] up-sampled by a factor
94 * of inc_coef. The terms of coef[1, 2, ... inc_coef - 1] multiplying 0
99 poly_conv(double *coef, // filter coef array
109 double *coef_end = coef + order;
111 while ((coef <= coef_end) && (data < data_end)) {
112 sum += *coef * *--data_end;
113 coef += inc_coef;
156 coef = new double[order + 1];
157 sinc_coef(fold, order, coef); // required bandwidth = PI/fold
199 *out_ptr++ = double2short(convolve(coef, in_buf, i + 1) +
200 convolve(coef + i + 1, state + i, order - i));
202 *out_ptr++ = double2short(convolve(coef, in_buf + i - order,
264 *out_ptr++ = double2short(up * poly_conv(coef + coef_offset,
271 *out_ptr++ = double2short(up * (poly_conv(coef + j,
273 coef + coef_offset, order - coef_offset, up, state,
281 *out_ptr++ = double2short(up * (poly_conv(coef + j,
283 coef + coef_offset, order - coef_offset, up, state,
355 *out++ = double2short(up * poly_conv(coef + coef_offset,
363 *out++ = double2short(up * (poly_conv(coef + j,
365 coef + coef_offset, order - coef_offset, up, state,
374 *out++ = double2short(up * (poly_conv(coef + j, order - j, up,
375 in_buf, size) + poly_conv(coef + coef_offset,