|
Algorithm 1 Fast FrFT Algorithm with Plotting for EEG Signals. |
| Define Parameters: |
|
| Algorithm Steps: |
-
1.
Input: EEG signal of length N and desired fractional Fourier transform angle for alcoholism detection.
-
2.
Output: EEG signal in the fractional Fourier domain and a scatter plot of the real and imaginary parts of the fast FrFT coefficients.
-
3.
Set the initial value of to .
-
4.
Calculate the scaling factor .
-
5.
Initialize k to 1.
-
6.
While do:
-
(a)
Set FFT length to .
-
(b)
Calculate the filter coefficients :
-
(c)
Filter the EEG signal using the filter coefficients and perform an FFT to obtain the signal in the fractional Fourier domain.
-
(d)
Multiply the signal in the fractional Fourier domain by the scaling factor .
-
(e)
Inverse FFT the signal to obtain the EEG signal in the time domain.
-
(f)
Set to the filtered EEG signal obtained in the previous step.
-
(g)
Increment k by 1.
-
7.
Output EEG signal in the fractional Fourier domain.
-
8.
Calculate the fast FrFT coefficients :
-
9.
Generate a scatter plot of the real and imaginary parts of the fast FrFT coefficients for alcoholism detection.
|