knagaitsev / haskell-fft

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HaskellFFT

A simple library to do Fourier Transforms in Haskell

To run tests simply run:

cabal run test

The interface is below. Note: fft and ifft expect power of 2 length input. Utils includes padPow2 in case this is needed

dftNaive :: RealFloat a => [Complex a] -> [Complex a]
idftNaive :: RealFloat a => [Complex a] -> [Complex a]
fft :: RealFloat a => [Complex a] -> [Complex a]
ifft :: RealFloat a => [Complex a] -> [Complex a]

Other useful utility functions can be found in Util.hs

About

License:MIT License


Languages

Language:Haskell 100.0%