Lines Matching refs:nfft
54 void check(kiss_fft_cpx * in,kiss_fft_cpx * out,int nfft,int isinverse) in check() argument
59 for (bin=0;bin<nfft;++bin) { in check()
65 for (k=0;k<nfft;++k) { in check()
66 double phase = -2*M_PI*bin*k/nfft; in check()
74 re /= nfft; in check()
75 im /= nfft; in check()
88 printf("nfft=%d inverse=%d,snr = %f\n",nfft,isinverse,snr ); in check()
95 void test1d(int nfft,int isinverse) in test1d() argument
97 size_t buflen = sizeof(kiss_fft_cpx)*nfft; in test1d()
101 kiss_fft_state *cfg = opus_fft_alloc(nfft,0,0); in test1d()
104 for (k=0;k<nfft;++k) { in test1d()
109 for (k=0;k<nfft;++k) { in test1d()
116 for (k=0;k<nfft;++k) { in test1d()
117 in[k].r /= nfft; in test1d()
118 in[k].i /= nfft; in test1d()
131 check(in,out,nfft,isinverse); in test1d()