Module
Data.Complex.FFT
- Package
- purescript-fft
- Repository
- Ebmtranceboy/purescript-fft
#PowerOfTwo Source
type PowerOfTwo = Int
#ExponentOfTwo Source
type ExponentOfTwo = Int
#initialSort Source
initialSort :: ExponentOfTwo -> Index -> Index
#fft Source
fft :: Direction -> Array Complex -> Array Complex
U_i = fft Forward ((u_n)) sr : sample rate Te : sampling period => Te = 1 / sr N : number of sample fe : frequency precision => fe = sr / (N - 1) T : signal duration u_n : sample at time t = n Te u_{N-1} : last sample at time t = T => T = (N-1) Te = 1 / fe U_i : bin at frequency f = i fe => i < (n-1) / 2 U_{N/2-1} : last useful bin at frequency f = sr/2
- Modules
- Data.
Complex. FFT