.\" This manpage has been automatically generated by docbook2man .\" from a DocBook document. This tool can be found at: .\" .\" Please send any bug reports, improvements, comments, patches, .\" etc. to Steve Cheng . .TH "cepCfft" "3" "26 November 2002" "" "" .SH NAME cepCfft \- Computes forward and inverse fft on a 2 or 3D Matrix or an array. .SH SYNOPSIS .nf #include #include typedef complex Complex; ...fill array... cepCfft FFT( FFTsize ); // build an operator object // The constructor builds tables and places them //in the object. To perform FFT on an array: Complex Array[FFTsize]; ... FFT.fft( Array ); // forward transform FFT.ifft( Array ); // reverse transform. To perform FFT on a matrix: Complex cepMatrix myMatrix(rows,cols,tables); //see cepMatrix for further information on Matrices. ...fill myMatrix... myMatrix = FFT.matrixFft (myMatrix, 1); //forward transform myMatrix = FFT.matrixFft (myMatrix, 0); //inverse transform .fi .SH "DESCRIPTION" .PP This class can be used in 2 ways..The first is as originally intended. That is, computing an FFT on an array of data. The second is spceific to GDMS. The FFT is computed on a matrix of data, with the results returned in a complex matrix. The FFT can be in either direction as specified in the function call. FFTobject.matrixFft (myMatrix, direction); Computes the FFT on the matrix in the direction specified. myMatrix The matrix containing the data to be FFT'd direction. int direction. 1 for forward 0 for inverse. FFTobject.fft(complexArray); Computes a forward FFT on the array passed. The results are written to the same array. complexArray The array of type complex containing the data to be FFT'd. FFTobject.ifft(complexArray); Computes an inverse FFT on the array passed. The results are written to the same array. complexArray The array of type complex containing the data to be FFT'd. FFTobject.getError(); Returns m_error which holds the error state from cepMatrix. Is the error.IsReal() the processing must stop. .SH "VERSION" .PP This documentation was generated for the \fBGeodetic Data Manipulation System\fR 0.1 by \fBautodocbook\fR (http://www.stillhq.com). .SH "AUTHOR" .PP The \fBGeodetic Data Manipulation System\fR is under development by Michael Still (mikal@stillhq.com), Daniel Fernandez, Kristy Van Der Vlist, Blake Swadling, and Nick Wheatstone. All code is Copyright 2002 Michael Still, Daniel Fernandez, Kristy Van Der Vlist, Blake Swadling and Nick Wheatstone, and is released under the GNU GPL. Code submissions are welcomed. Contact Michael at the address above if you have something you would like to contribute. .SH "BUGS" .PP There are no known bugs in the \fBGeodetic Data Manipulation System\fR. If you find one, please contact mikal@stillhq.com and let me know.