rfft vs fft
mohjaba opened this issue · 1 comments
mohjaba commented
Hi, in the file "sigproc.py" in line 102 & 103:
complex_spec = numpy.fft.rfft(frames, NFFT)
return numpy.absolute(complex_spec)
"rfft" return real not complex, you can use "fft" instead or keep it and no need for "numpy.absolute"
jameslyons commented
Rfft is applied to real sequences, it does not return real sequences.
Applied to speech signals it returns a complex spectrum, so we still need
to take the absolute. Documentation here:
https://docs.scipy.org/doc/numpy/reference/generated/numpy.fft.rfft.html
…On Sat, 2 Jun 2018, 2:39 PM Jalal Abdulbaqi ***@***.***> wrote:
Hi, in the file "sigproc.py" in line 102 & 103:
complex_spec = numpy.fft.rfft(frames, NFFT) return
numpy.absolute(complex_spec)
"rfft" return real not complex, you can use "fft" instead or keep it and
no need for "numpy.absolute"
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#65>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABn1QRhjtlLIhMN86gTZYjs7qjw8in33ks5t4hbygaJpZM4UXixy>
.