LASP 1.0
Library for Acoustic Signal Processing
|
Perform forward FFT's on real time data. Computes single-sided spectra, equivalent to Numpy's rfft and irfft functions. But then faster as it can use a fast FFT backend, such as FFTW. More...
#include <lasp_fft.h>
Public Member Functions | |
Fft (const us nfft) | |
Initialize FFT. | |
~Fft () | |
Fft (const Fft &)=delete | |
Fft & | operator= (const Fft &)=delete |
us | nfft () const |
Return nfft. | |
vc | fft (const vd &timedata) |
cmat | fft (const dmat &timedata) |
vd | ifft (const vc &freqdata) |
dmat | ifft (const cmat &freqdata) |
Static Public Member Functions | |
static void | load_fft_wisdom (const std::string &wisdom) |
Load FFT wisdom from a wisdom string. Function does nothing if FFT backend is not FFTW. | |
static std::string | store_fft_wisdom () |
Return a string containing FFT wisdom storage. String is empty for backend != FFTW. | |
Perform forward FFT's on real time data. Computes single-sided spectra, equivalent to Numpy's rfft and irfft functions. But then faster as it can use a fast FFT backend, such as FFTW.
Definition at line 24 of file lasp_fft.h.
Fft::Fft | ( | const us | nfft | ) |
Fft::~Fft | ( | ) |
Definition at line 119 of file lasp_fft.cpp.
|
delete |
Compute the fft of the data matrix, first axis is assumed to be the time axis.
[in] | timedata | Input time data, should have size nfft. First axis is time, second axis is channel |
Definition at line 131 of file lasp_fft.cpp.
Compute the fft for a single channel of data.
[in] | timedata | Input time data, should have size nfft |
Definition at line 126 of file lasp_fft.cpp.
Perform inverse FFT
freqdata | Frequency domain data |
Definition at line 150 of file lasp_fft.cpp.
Perform inverse fft on a single channel.
[in] | freqdata | Frequency domain input data, to be iFft'th. Should have size nfft/2+1 |
Definition at line 145 of file lasp_fft.cpp.
|
static |
Load FFT wisdom from a wisdom string. Function does nothing if FFT backend is not FFTW.
wisdom | Wisdom string content. |
Definition at line 163 of file lasp_fft.cpp.
us Fft::nfft | ( | ) | const |
Return nfft.
Definition at line 121 of file lasp_fft.cpp.
|
static |
Return a string containing FFT wisdom storage. String is empty for backend != FFTW.
Definition at line 175 of file lasp_fft.cpp.