DMelt:DSP/1 Fast Fourier Transforms

From HandWiki
Limitted access. First login to DataMelt member area if you are a full DataMelt member.


Fast Fourier transforms

A Fast Fourier transform (FFT) is an algorithm that samples a signal over a period of time (or space) and divides it into its frequency components. There are several packages dealing with the FFT problem. We will discuss the fastest one, which uses many threads and the multicore computer architecture. It is based on the ParallelColt as implemented by Piotr Wendykier.

In this example we will use DComplexFactory2D DComplexFactory2D factory to create a random dense matrix (DenseDComplexMatrix2D DenseDComplexMatrix2D) and perform FCC.

No access. To show this code, login to DataMelt member area

Discrete Cosine Transform (DCT)

A Discrete cosine transform discrete cosine transform (DCT) expresses a finite sequence of data points in terms of a sum of cosine functions oscillating at different frequencies. This example is based on the real DenseDoubleMatrix2D DenseDoubleMatrix2D matrix.

No access. To show this code, login to DataMelt member area

You can also use 3D matrix methods, see DenseDoubleMatrix3D DenseDoubleMatrix3D

Discrete Fourier transform (DFT)

Discrete Fourier transform Discrete Fourier transform converts a finite sequence of equally-spaced samples of a function into a same-length sequence of equally-spaced samples of the discrete-time Fourier transform. This is 1D DFT transform of a complex matrix 1000x1000 using several processing cores:

No access. To show this code, login to DataMelt member area