LitDev Extension API
LDMathX
Extended maths methods.
FFTComplex | FFTForward | FFTImaginary |
FFTInverse | FFTReal |
FFTComplex(real,imaginary)
Create an array of complex values from arrays of real and imaginary parts.
real An array of real data.
imaginary An array of imaginary data.
returns An array of complex data (real amplitude and imaginary phase), "MISMATCH" or "FAILED".
For each complex pair the index is the real part and the value is the imaginary part.
FFTForward(real)
Compute a FFT (Fast Fourier Transform).
real An array of real values to calculate the FFT from.
returns An array of complex data (real amplitude and imaginary phase) or "FAILED".
For each complex pair the index is the real part and the value is the imaginary part.
FFTImaginary(complex)
Get the imaginary part of an array of complex data.
complex An array of complex data (real amplitude and imaginary phase).
For each complex pair the index is the real part and the value is the imaginary part.
returns An array of the imaginary part of the data or "FAILED".
FFTInverse(complex)
The inverse of a FFT (Fast Fourier Transform).
complex An array of complex data (real amplitude and imaginary phase).
For each complex pair the index is the real part and the value is the imaginary part.
returns An array of inverse FFT values or "FAILED".
FFTReal(complex)
Get the real part of an array of complex data.
complex An array of complex data (real amplitude and imaginary phase).
For each complex pair the index is the real part and the value is the imaginary part.
returns An array of the real part of the data or "FAILED".