correct Nyquist bin scaling for Green branch
This commit is contained in:
parent
5458f15d6b
commit
b522bcc6c0
|
|
@ -223,7 +223,7 @@ com_fft(wordlist *wl)
|
|||
fdvec[i][j].cx_real = in[2*j]/scale;
|
||||
fdvec[i][j].cx_imag = in[2*j+1]/scale;
|
||||
}
|
||||
fdvec[i][fpts-1].cx_real = in[1]/scale;
|
||||
fdvec[i][fpts-1].cx_real = in[1]/scale/2.0;
|
||||
fdvec[i][fpts-1].cx_imag = 0.0;
|
||||
|
||||
tfree(in);
|
||||
|
|
|
|||
|
|
@ -811,7 +811,7 @@ cx_fft(void *data, short int type, int length, int *newlength, short int *newtyp
|
|||
outdata[i].cx_real = datax[2*i]/scale;
|
||||
outdata[i].cx_imag = datax[2*i+1]/scale;
|
||||
}
|
||||
outdata[fpts-1].cx_real = datax[1]/scale;
|
||||
outdata[fpts-1].cx_real = datax[1]/scale/2.0;
|
||||
outdata[fpts-1].cx_imag = 0.0;
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in New Issue