fft(buffer, N)

import signals.fft-1

Calculate Fourier transform (FFT) on a given array.

bufferInput data for the transform.
NThe length of the transform (optional).
return valueThe transformed version of the input.

Argument N is optional. If given and longer than the length of the buffer, the buffer will be padded with zeros to the appropriate length. This will increase the resolution of the transform.

import signals.fft-1;
fft([1,2,3,4,5,6,7,8])
For more information on FFT, see http://en.wikipedia.org/wiki/Fast_Fourier_transform.