LitDev Extension API

GW LD3DView LDArray LDBits LDBlueTooth
LDCall LDChart LDClient LDClipboard LDColours
LDCommPort LDController LDControls LDCursors LDDataBase
LDDateTime LDDebug LDDialogs LDDictionary LDEffect
LDEmail LDEncryption LDEvents LDFastArray LDFastShapes
LDFigures LDFile LDFinances LDFocus LDftp
LDGeography LDGraph LDGraphicsWindow LDHashTable LDHID
LDIcon LDImage LDInline LDIOWarrior LDList
LDLogic LDMath LDMathX LDMatrix LDMusic
LDNetwork LDPhysics LDProcess LDQueue LDRegex
LDResources LDScrollBars LDSearch LDServer LDSettings
LDShapes LDShell LDSort LDSound LDSpeech
LDStatistics LDStopwatch LDText LDTextWindow LDTimer
LDTranslate LDUnits LDUtilities LDVector LDWaveForm
LDWebCam LDWindows LDxml LDZip TW

LDMathX
Extended maths methods, FFT and cubic spline.

CreateSpline FFTComplex FFTForward
FFTImaginary FFTInverse FFTReal
InterpolateSpline

CreateSpline(data,mode)
Create a cubic spline for later interpolation.
data A set of x,y data in an array data[x]=y.
mode Spline termination (both ends) or other variants
1 : first derivitive = 0
2 : second derivitive = 0
3 : Hermite cubic spline (all first derivatives = 0)
4 : Akima cubic spline (reduce outlier overshoots)

returns The cubic spline.

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".

InterpolateSpline(splineName,data)
Calculated interpolated data from a previopusly created cubic spline.
splineName The cubic spline created with CreateSpline.
data An array of x values to interpolate.
returns An array of interpolated x,y pairs, result[x] = y.