Lines Matching refs:coef
423 static inline double firTransfer(const T* coef, int L, int halfNumCoef, double w) {
424 double accum = static_cast<double>(coef[0])*0.5; // "center coefficient" from first bank
425 coef += halfNumCoef; // skip first filterbank (picked up by the last filterbank).
430 accum += cos(ix*w)*static_cast<double>(*coef++);
475 sc = static_cast<double>(*coef++) + dcos*sc - sp;
524 static void testFir(const T* coef, int L, int halfNumCoef,
530 double trf = firTransfer(coef, L, halfNumCoef, wstart);
537 trf = firTransfer(coef, L, halfNumCoef, wstart);
600 static void testFir(const T* coef, int L, int halfNumCoef,
605 testFir(coef, L, halfNumCoef, 0., fp, passSteps, fmin, fmax);
610 testFir(coef, L, halfNumCoef, fs, 0.5, stopSteps, fmin, fmax);
715 static inline void firKaiserGen(T* coef, int L, int halfNumCoef,
749 *coef++ = static_cast<T>(toint(y, 1ULL<<(sizeof(T)*8-1), err));
751 *coef++ = static_cast<T>(toint(y, 1ULL<<(sizeof(T)*8-1)));
753 *coef++ = static_cast<T>(y);