0

How to compute irfft if I have only amplitude and phase spectrum of signal? In numpy docs I've found only irfft which use fourier coefficients for this transformation.

  • 1
    If you have amplitude and phase, then you can compute the complex spectrum as `amp*np.exp(phase*1j)` – Eric Feb 04 '17 at 14:29

1 Answers1

1

If you have amplitude and phase vectors for a spectrum, you can convert them to a complex (IQ or Re,Im) vector by multiplying the cosine and sine of each phase value by its associated amplitude value (for each FFT bin with a non-zero amplitude, or vector-wise).

hotpaw2
  • 70,107
  • 14
  • 90
  • 153