Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 205752

R function for FFT in different frequencies?

$
0
0

The FFT in R is defined for k = 0, ..., N - 1.

What if you wanted the frequencies for different values of k?

I've seen definitions of FFT that use k = - (N - 1), ..., 0, ..., N - 1.

How would you get these in R?

You can get them using both fft(x) and fft(x, inverse = TRUE), but this computes the k = 0 component twice.


Viewing all articles
Browse latest Browse all 205752

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>