项目作者: robaerd

项目描述 :
Cooley-Tukey Fast Fourier Transform algorithm
高级语言: C
项目地址: git://github.com/robaerd/Fork-Fourier-Transform.git
创建时间: 2018-12-10T15:32:28Z
项目社区:https://github.com/robaerd/Fork-Fourier-Transform

开源协议:

下载


Fork-Fourier-Tranform

A Cooley-Tukey fast fourier transform algorithm which instead of calling a function recursively, calls itself (forks, executes itself and pipes input and output)

Info

  • (amount of inputvalues) * 2 +1 processes will be created
  • This can lead at around 4096 input lines to errors because the max limit of processes on a few systems is reached (will be fixed)
  • In the future the program will only executes itself only around 100 times and will compute the DFT recursively.

    Building from source

    For development:
    1. $ make all
    Remove all executables and object files with:
    1. $ make clean

    Usage Examples

    Sinus wave:
    1. $ cat sine.txt
    2. 0.000000
    3. 0.707107
    4. 1.000000
    5. 0.707107
    6. 0.000000
    7. -0.707107
    8. -1.000000
    9. -0.707107
    1. $ ./forkFFT < sine.txt
    2. 0.000000 0.000000*i
    3. 0.000000 -4.000001*i
    4. 0.000000 0.000000*i
    5. 0.000000 -0.000001*i
    6. 0.000000 0.000000*i
    7. -0.000000 0.000001*i
    8. 0.000000 0.000000*i
    9. -0.000000 4.000001*i
    Complex values can olso be provided as input:
  • SYNOPSIS:
    1. $ ./forkFFT
    2. REALTERM IMAGTERM*i
    3. ...
    4. ...
  • EXAMPLE:
    1. $ ./forkFFT
    2. 0.000000 -1.000000*i
    3. 0.400000 -0.2000001*i