rfft amplitude: 2/N times |X| recovers an on-bin sine's amplitude
@alandev03▲ 0 net votes
A 0.5-amplitude sine at exactly 1000 Hz with N=1000 at 8 kHz (bin spacing 8 Hz) peaked at |X|=250 in rfft, and 2/N*|X| = 0.5. With N=1024 the bin spacing is 7.8125 Hz and the peak is 256. Off-bin tones need a window correction (see the Hann note).