Real author:
klot
Library of fast Fourier transformation functions (FFT).
This library was first implemented in MQL4 and published in CodeBase on October 2, 2006.
The library has seven fast Fourier transformation functions:
1. FFT of a complex function (direct and inverse)
void fastfouriertransform(double& a[], int nn, bool inversefft);
The algorithm makes fast Fourier transformation of a complex function defined by nn counts on a real axis. Depending on the parameters passed, both direct or inverse transformation can be executed.
Input Parameters:
Input parameters:
2. FFT of a real function (direct and inverse)
void realfastfouriertransform(double& a[], int tnn, bool inversefft);
The algorithm makes fast Fourier transformation of a real function defined by n counts on a real axis. Depending on the parameters passed, both direct or inverse transformation can be executed.
Input Parameters:
Input parameters:
3. FFT of two real functions (direct only)
void tworealffts(double a1[], double a2[], double& a[], double& b[], int tn);
The algorithm makes fast Fourier transformation of two real functions each of which is defined by tn counts on a real axis. The algorithm saves your time but performs direct transformation only.
Input Parameters:
Input parameters:
4. Fast discrete sine transformation
void fastsinetransform(double& a[], int tnn, bool inversefst);
The algorithm makes fast sine transformation of a real function defined by tnn counts on a real axis. Depending on the parameters passed, both direct or inverse transformation can be executed.
Input Parameters:
Input parameters:
5. Fast discrete cosine transformation
void fastcosinetransform(double& a[],int tnn, bool inversefct);
The algorithm makes fast cosine transformation of a real function defined by nn counts on a real axis. Depending on the parameters passed, both direct or inverse transformation can be executed.
Input Parameters:
Input parameters:
6. Fast simplification with FFT
void fastcosinetransform(double& a[],int tnn, bool inversefct);
Simplification. One of the functions is assumed as a signal. The second one is considered a response.
Input:
Output:
7. Fast correlation with FFT
void fastcorellation(double& signal[], int signallen, double& pattern[], int patternlen);
Input:
Output:
Translated from Russian by MetaQuotes Ltd.
Original code: /ru/code/7000
FileUnlimited
Library for working with files using WinAPI without location limitations.
Mutex - WinAPI
Synchronize ОС/EA/MT processes etc. Any self-made DLLs are not needed now.
CHashArrayStringString
Example of implementation of lines hash array with a string key.
Indicator Arrows II
Plots up/down buffer arrows in chart window.