Using MS Excel’s Macro function allows an automatic transformation of Fast Fourier Transform(FFT) and Discrete Fourier Transform (DFT) of individual data, however, users may find it difficult to use sometimes, as it takes much of data when using MS Excel, therefore, I would like to show how to make a program using a library (*.dll） for Fourier Transform part with C#.
Please see below on how to use this program.
By unzipping the above .zip file, you will find the files named as below. Then, double click FourierTransform.exe to run the program.
Data format that allows Fourier Transform
Data is composed of 1 data per row in .CSV file format.
In case there include real and imaginary numbers in the input data, it becomes real number part and imaginary number part per row.
Please refer to the sample data saved as .CSV file format inside sampldata folder of the .zip file.
Clicking File → LoadData and designating .CSV file allows data acquisition and shows the result of Fourier Transform (magnitude of each frequency after Fourier Transform).
Fourier Transform runs FFT (in case the number of data is 2 to the n) and DFT (all other cases).
Transform to DFT or IDFT
In menu, clicking Fourier direction → Forward or Backward allows to transform to DFT or IDFT.
DFT and IDFT are calculated as below formula.
Clicking one of the following Window→ Hamming, Hanning, Blackman allows you to apply each window function.
Please note that once you apply window function, you are not able to retrieve the original data.
Therefore, if you need the original data, please recall the data again.
All programs disclosed here can be used freely, however, please be careful to use them, as we are not held responsible for the problems caused by the program bugs.