ZeusMath-Library  2.0.4
zeus::TButterflyFFT Class Reference

`#include <ButterflyFFT.h>`

## Public Member Functions

TButterflyFFT ()

virtual ~TButterflyFFT ()

void fft (TComplex *axIn, Int iN)

void ifft (TComplex *axIn, Int iN)

void fft2D (TComplex **axIn, Int iWidth, Int iHeight)

void ifft2D (TComplex **axIn, Int iWidth, Int iHeight)

## Detailed Description

this class implements the fast fourier transformation and inverse fast fourier transformation functions.

## § TButterflyFFT()

 TButterflyFFT::TButterflyFFT ( )

Creates the fourier transformater

## § ~TButterflyFFT()

 TButterflyFFT::~TButterflyFFT ( )
virtual

Destroys the fourier transformater

## § fft()

 void TButterflyFFT::fft ( TComplex * axIn, Int iN )

Complex fast fourier transformation. This method takes numbers of the complex numberspace, transforms them, and returns the result again in the complex number space. To feed it with real numbers, just set the real components of the complex numbers only.

Parameters
 axIn : Array of complex numbers as input. The output will be written into the same array iN : Number of samples

## § fft2D()

 void TButterflyFFT::fft2D ( TComplex ** axIn, Int iWidth, Int iHeight )

This method implements the 2D fourier transformation

Parameters
 axIn : In-out parameter, containing the matriy of data iWidth : Width of the matrix (number of columns); iHeight : Height of the matrix (number of rows)
Note
The data matrix is interpreted as a 2d array. The method accesses the data as axIn[y][x], where as y is the row and x is the column ID.

## § ifft()

 void TButterflyFFT::ifft ( TComplex * axIn, Int iN )

Complex inverse fast fourier transformation

Parameters
 axIn : Array of complex numbers as input. The output will be written into the same array iN : Number of samples

## § ifft2D()

 void TButterflyFFT::ifft2D ( TComplex ** axIn, Int iWidth, Int iHeight )

This method implements the 2D inverse fourier transformation

Parameters
 axIn : In-out parameter, containing the matriy of data iWidth : Width of the matrix (number of columns); iHeight : Height of the matrix (number of rows)
Note
The data matrix is interpreted as a 2d array. The method accesses the data as axIn[y][x], where as y is the row and x is the column ID.

The documentation for this class was generated from the following files: