correct Nyquist bin scaling for Green branch

This commit is contained in:
dwarning 2026-03-03 20:39:08 +01:00
parent 5458f15d6b
commit b522bcc6c0
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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