NFFT / nfft

The official NFFT library repository
https://tu-chemnitz.de/~potts/nfft/
GNU General Public License v2.0
174 stars 45 forks source link

Reconstruct the harmonics #69

Closed vlavorini closed 6 years ago

vlavorini commented 6 years ago

Hello,

that's probably a easy answer, but I lost myself in reading the formulae.

If I want to reconstruct a single harmonic, and so I have to extract frequency, phase and amplitude of it, how can I do? Just to complete, I'm working in one dimension and with the Python wrapper (pyNFFT), and I follow the example listed here.

In the example the frequencies are extracted. So I tried to calculate the modules and angles from the relative complex numbers, but it turn out they are not amplitudes and phases.

Where I can find AMplitudes and Phases? Thank you!

tvolkmer commented 6 years ago

Since I do not know the exact representation you want to convert to, I can only give a general hint: Please have a look at https://en.wikipedia.org/wiki/Fourier_series#Definition for definition and conversion of different representations.