Instrument Neutral Distributed Interface INDI  2.0.2
Functions
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. More...
 
DLL_EXPORT void dsp_fourier_idft (dsp_stream_p stream)
 Perform an inverse discrete Fourier Transform of a dsp_stream. More...
 
DLL_EXPORT void dsp_fourier_2dsp (dsp_stream_p stream)
 Fill the magnitude and phase buffers with the current data in stream->dft. More...
 
DLL_EXPORT void dsp_fourier_2complex_t (dsp_stream_p stream)
 Obtain the complex fourier tranform from the current magnitude and phase buffers. More...
 
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. More...
 
DLL_EXPORT double * dsp_fourier_complex_array_get_magnitude (dsp_complex in, int len)
 Obtain a complex number's array magnitudes. More...
 
DLL_EXPORT double * dsp_fourier_complex_array_get_phase (dsp_complex in, int len)
 Obtain a complex number's array phases. More...
 

Detailed Description

Function Documentation

◆ dsp_fourier_2complex_t()

DLL_EXPORT void dsp_fourier_2complex_t ( dsp_stream_p  stream)

Obtain the complex fourier tranform from the current magnitude and phase buffers.

Parameters
streamthe inout stream.

Definition at line 58 of file fft.c.

◆ dsp_fourier_2dsp()

DLL_EXPORT void dsp_fourier_2dsp ( dsp_stream_p  stream)

Fill the magnitude and phase buffers with the current data in stream->dft.

Parameters
streamthe inout stream.

Definition at line 35 of file fft.c.

◆ dsp_fourier_complex_array_get_magnitude()

DLL_EXPORT double* dsp_fourier_complex_array_get_magnitude ( dsp_complex  in,
int  len 
)

Obtain a complex number's array magnitudes.

Parameters
inthe input complex number array.
lenthe input array length.
Returns
the array filled with the magnitudes

Definition at line 81 of file fft.c.

◆ dsp_fourier_complex_array_get_phase()

DLL_EXPORT double* dsp_fourier_complex_array_get_phase ( dsp_complex  in,
int  len 
)

Obtain a complex number's array phases.

Parameters
inthe input complex number array.
lenthe input array length.
Returns
the array filled with the phases

Definition at line 93 of file fft.c.

◆ dsp_fourier_dft()

DLL_EXPORT void dsp_fourier_dft ( dsp_stream_p  stream,
int  exp 
)

Perform a discrete Fourier Transform of a dsp_stream.

Parameters
streamthe inout stream.
expthe exponent (recursivity) of the fourier transform.

Definition at line 135 of file fft.c.

◆ dsp_fourier_idft()

DLL_EXPORT void dsp_fourier_idft ( dsp_stream_p  stream)

Perform an inverse discrete Fourier Transform of a dsp_stream.

Parameters
streamthe inout stream.

Definition at line 172 of file fft.c.

◆ 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 
)

Obtain a complex array from phase and magnitude arrays.

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

Definition at line 115 of file fft.c.