|
OpenWareLaboratory
|
This class performs direct and inverse ShortFast Fourier Transform. More...
Public Member Functions | |
| void | fft (ShortArray input, ComplexShortArray output) |
| Perform the direct FFT. More... | |
| size_t | getSize () |
| Get the size of the FFT. More... | |
| void | ifft (ComplexShortArray input, ShortArray output) |
| Perform the inverse FFT. More... | |
| void | init (int aSize) |
| Initialize the instance. More... | |
| ShortFastFourierTransform () | |
| Default constructor. More... | |
| ShortFastFourierTransform (int aSize) | |
| Construct and initialize the instance. More... | |
| ~ShortFastFourierTransform () | |
This class performs direct and inverse ShortFast Fourier Transform.
Note that on ARM, this links in static coefficients for all supported FFT sizes!
Definition at line 17 of file ShortFastFourierTransform.h.
| ShortFastFourierTransform::ShortFastFourierTransform | ( | ) |
Default constructor.
Does not initialize the instance.
Definition at line 41 of file ShortFastFourierTransform.cpp.
| ShortFastFourierTransform::ShortFastFourierTransform | ( | int | aSize | ) |
Construct and initialize the instance.
| [in] | aSize | The size of the FFT |
Definition at line 43 of file ShortFastFourierTransform.cpp.
References init().
| ShortFastFourierTransform::~ShortFastFourierTransform | ( | ) |
Definition at line 47 of file ShortFastFourierTransform.cpp.
References ASSERT, and ComplexShortArray::destroy().
| void ShortFastFourierTransform::fft | ( | ShortArray | input, |
| ComplexShortArray | output | ||
| ) |
Perform the direct FFT.
| [in] | input | The real-valued input array |
| [out] | output | The complex-valued output array |
Definition at line 59 of file ShortFastFourierTransform.cpp.
References ASSERT, SimpleArray< T >::getData(), getSize(), SimpleArray< T >::getSize(), ComplexShortArray::im(), and ComplexShortArray::re().
| size_t ShortFastFourierTransform::getSize | ( | ) |
Get the size of the FFT.
Definition at line 79 of file ShortFastFourierTransform.cpp.
References SimpleArray< T >::getSize().
| void ShortFastFourierTransform::ifft | ( | ComplexShortArray | input, |
| ShortArray | output | ||
| ) |
Perform the inverse FFT.
The output is rescaled by 1/fftSize.
| [in] | input | The complex-valued input array |
| [out] | output | The real-valued output array |
Definition at line 69 of file ShortFastFourierTransform.cpp.
References ASSERT, SimpleArray< T >::getData(), getSize(), SimpleArray< T >::getSize(), and ComplexShortArray::re().
| void ShortFastFourierTransform::init | ( | int | aSize | ) |
Initialize the instance.
| aSize | The size of the FFT |
Definition at line 52 of file ShortFastFourierTransform.cpp.
References ASSERT, ComplexShortArray::create(), and getSize().
Referenced by ShortFastFourierTransform().