Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to perform nonuniform IFFT #25

Open
evileleven opened this issue Oct 29, 2024 · 1 comment
Open

how to perform nonuniform IFFT #25

evileleven opened this issue Oct 29, 2024 · 1 comment

Comments

@evileleven
Copy link

I have an OFDM signal, but the frequency interval is different. In this way, I want to use IFFT on uniform frequency data to get the time data. However, I do not know the exact time for the result of the IFFT signal. Do you know how I can do that?

N = 80
delta_f = 312.5e3
Frequency = np.arange(N) * delta_f 
Frequency[40] = Frequency[39] + 2*delta_f # nonuniform frequency interval
Frequency_signal = np.random.rand(1000)

how to use nfft_adjoint(x, Frequency_signal)? what should I define as 'x'? Is there any place for me to input the nonuniform frequency interval?

@jakevdp
Copy link
Owner

jakevdp commented Oct 29, 2024

The nfft package implements fast routines for computing the two sums mentioned in the README: https://github.com/jakevdp/nfft?tab=readme-ov-file#about

You should figure out the quantity you wish to compute (it's hard for me to tell from your description), and relate it mathematically to one of these expressions in order to make use of the nfft or nfft_adjoint kernel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants