Description

Applies direct Fourier transform to a vector of complex data.

Return Type

None  

Syntax

object.Forward1D vArrayIn, vArrayOut, [ForwardOutput]

The Forward1D Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McFFT.
vArrayInRequired. A Variant value.

Input complex vector.

vArrayOutRequired. A Variant value.

Output vector.

ForwardOutputOptional. A mcFFTForwardOutput enumeration, as described in settings.

mcFFTForwardOutput : Output type.

Settings

The settings for ForwardOutput are:

ConstantValueDescription
 mcfoRealImaginary0

FFT.Forward returns real and imaginary parts combined in one image.

 mcfoPolar1

FFT.Forward returns the amplitude and phase of the spectrum combined in one image.

 mcfoRealImaginaryDouble2

These are the same as the above, except that the result will be double

 mcfoPolarDouble3

will be double instead of single precision floating point

Remarks

The size of the vector must be a power of two, otherwise the function transforms the closest smaller/larger vector of such size, depending on the value of Padding. The input vector can be a 1D array of 2 x SIZE numbers, a 2D array of SIZE pairs of numbers, or a 1D array of SIZE User Defined Type, each one containing 2 single precision floating point numbers. The output array is automatically set to the appropriate size. ForwardOutput determines whether the output frequencies are expressed in carthesian or polar coordinnates.

Exceptions

E_INVALIDARG, E_OUTOFMEMORY.