Open source Very Long Baseline Interferometry
OpenVLBI
Loading...
Searching...
No Matches
DSP API Fourier transform related functions

Functions

DLL_EXPORT void dsp_fourier_dft (dsp_stream_p stream, int exp)
 Perform a discrete Fourier Transform of a dsp_stream.
 
DLL_EXPORT void dsp_fourier_idft (dsp_stream_p stream)
 Perform an inverse discrete Fourier Transform of a dsp_stream.
 
DLL_EXPORT void dsp_fourier_2dsp (dsp_stream_p stream)
 Fill the magnitude and phase buffers with the current data in stream->dft.
 
DLL_EXPORT void dsp_fourier_2complex_t (dsp_stream_p stream)
 Obtain the complex fourier tranform from the current magnitude and phase buffers.
 
DLL_EXPORT void dsp_fourier_phase_mag_array_get_complex (double *mag, double *phi, complex_t *out, int len)
 Obtain a complex array from phase and magnitude arrays.
 
DLL_EXPORT double * dsp_fourier_complex_array_get_magnitude (dsp_complex in, int len)
 Obtain a complex number's array magnitudes.
 
DLL_EXPORT double * dsp_fourier_complex_array_get_phase (dsp_complex in, int len)
 Obtain a complex number's array phases.
 

Detailed Description

Function Documentation

◆ dsp_fourier_2complex_t()

DLL_EXPORT void dsp_fourier_2complex_t ( dsp_stream_p stream)
Parameters
streamthe inout stream.

◆ dsp_fourier_2dsp()

DLL_EXPORT void dsp_fourier_2dsp ( dsp_stream_p stream)
Parameters
streamthe inout stream.

◆ dsp_fourier_complex_array_get_magnitude()

DLL_EXPORT double * dsp_fourier_complex_array_get_magnitude ( dsp_complex in,
int len )
Parameters
inthe input complex number array.
lenthe input array length.
Returns
the array filled with the magnitudes

◆ dsp_fourier_complex_array_get_phase()

DLL_EXPORT double * dsp_fourier_complex_array_get_phase ( dsp_complex in,
int len )
Parameters
inthe input complex number array.
lenthe input array length.
Returns
the array filled with the phases

◆ dsp_fourier_dft()

DLL_EXPORT void dsp_fourier_dft ( dsp_stream_p stream,
int exp )
Parameters
streamthe inout stream.
expthe exponent (recursivity) of the fourier transform.

◆ dsp_fourier_idft()

DLL_EXPORT void dsp_fourier_idft ( dsp_stream_p stream)
Parameters
streamthe inout stream.

◆ dsp_fourier_phase_mag_array_get_complex()

DLL_EXPORT void dsp_fourier_phase_mag_array_get_complex ( double * mag,
double * phi,
complex_t * out,
int len )
Parameters
magthe input magnitude array.
phithe input phase array.
outthe output complex arrays.
lenthe input arrays length.
Returns
the array filled with the complex numbers