Luz / power_spectrum

This example computes the power spectrum of a signal using fftw.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

power_spectrum

This example computes the power spectrum of a signal using fftw.

Dependencies

  • fftw

Building

make

Verification with octave:

x = fft([3 12 23 12 1 8 19 16 5 5 12 22 12 0 8 16]);
round((real(x).^2+imag(x).^2))(1:9)
30276 35 249 1441 3362 827 99 16 64

About

This example computes the power spectrum of a signal using fftw.

License:MIT License


Languages

Language:C 89.2%Language:Makefile 10.8%