Skip to content

robaerd/Fork-Fourier-Transform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

$ make all

Remove all executables and object files with:

$ make clean

Usage Examples

Sinus wave:
$ cat sine.txt
0.000000
0.707107
1.000000
0.707107
0.000000
-0.707107
-1.000000
-0.707107
$ ./forkFFT < sine.txt
0.000000 0.000000*i
0.000000 -4.000001*i
0.000000 0.000000*i
0.000000 -0.000001*i
0.000000 0.000000*i
-0.000000 0.000001*i
0.000000 0.000000*i
-0.000000 4.000001*i
Complex values can olso be provided as input:
  • SYNOPSIS:
$ ./forkFFT
REALTERM IMAGTERM*i
...
...
  • EXAMPLE:
$ ./forkFFT
0.000000 -1.000000*i
0.400000 -0.2000001*i

About

Cooley-Tukey Fast Fourier Transform algorithm

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published