Home | History | Annotate | Download | only in tests

Lines Matching refs:nfft

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