Code Monkey home page Code Monkey logo

fft-garden's Introduction

FFT Garden

FFT Garden is a collection of Fast Fourier Transform algorithms implemented in the C programming language.

The project aims to provide easy to read and easy to study code for various FFT algorithms. Most of the proposed algorithms are described in the literature.

Algorithms

There are many designs choice that can be made when designing an FFT algorithm. When combined, this yield a very large number of variants. The collection of 44 algorithms provided here cover a small portion of the FFT design space. The source files naming reflect the implemented algorithm variants as described below.

Let's consider three aspects of FFT algorithms:

  • The butterfly design:

    • Cooley-Tukey Radix-2 FFT [ct]
    • Mixed Radix 2/4 FFT [mr]
    • Split-Radix FFT [sr]
    • Conjugate Pair FFT [cp]
  • The decimation:

    • Decimation In Time [dit]
    • Decimation In Frequency [dif]
  • The traversal and algorithm structure:

    • Breadth-First Iterative [bi]
    • Depth-First Recursive [dr]
    • Depth-First Iterative [di]

More variants can be devised by considering the following additional properties:

  • Butterflies using the same twiddles can be grouped by stage [G].
  • Butterflies using the same twiddles can be grouped by block [S].
  • Input reordering and/or butterfly scheduling may rely on lookup tables [L].
  • Butterfly functions may be simplified for some twiddle factor values [P].
  • The size of the twiddle table may be reduced to N/8 entries [F].
  • Some algorithms can be made to work in-place [N].

Contributing

Many more algorithms could be added. In particular:

  • Only power of 2 size algorithms are proposed.
  • Most proposed algorithms use decimation in time.
  • Most proposed algorithms are out-of-place.
  • Other butterfly designs could be included.

Pull requests are welcome.

License

The project source code is licensed under the CC0 creative commons license.

Author

  • Alexandre Becoulet - Initial work as part of the paper A Depth-First Iterative Algorithm for the Conjugate Pair Fast Fourier Transform

fft-garden's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

mfkiwl

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.