Is there a package in R that gives -normalized-inverse FFT?

Has anyone written a fast Fourier transform extension for R that modifies the native fft () R function so that when you call the inverse fast Fourier transform, you don’t need to divide by the length of the fast Fourier transform? I do a lot of FFT and reverse FFT, and I have to do it every time I get annoyed.

+4
source share
1 answer

You can write your own:

fftinv <- function( x ) { fft( x, inverse=TRUE ) / length( x ) } 
+8
source

Source: https://habr.com/ru/post/1381621/


All Articles