Instrument Neutral Distributed Interface INDI  1.9.5
Functions
fft.c File Reference
#include "dsp.h"
#include <fftw3.h>

Go to the source code of this file.

Functions

double dsp_fourier_complex_get_magnitude (dsp_complex n)
 Obtain a complex number's magnitude. More...
 
double dsp_fourier_complex_get_phase (dsp_complex n)
 Obtain a complex number's phase. More...
 
double * dsp_fourier_complex_array_get_magnitude (dsp_complex *in, int len)
 Obtain a complex number's array magnitudes. More...
 
double * dsp_fourier_complex_array_get_phase (dsp_complex *in, int len)
 Obtain a complex number's array phases. More...
 
dsp_complexdsp_fourier_dft (dsp_stream_p stream)
 Perform a discrete Fourier Transform of a dsp_stream. More...
 
dsp_tdsp_fourier_idft (dsp_stream_p stream)
 Perform an inverse discrete Fourier Transform of a dsp_stream. More...
 

Function Documentation

◆ dsp_fourier_complex_array_get_magnitude()

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 36 of file fft.c.

◆ dsp_fourier_complex_array_get_phase()

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 46 of file fft.c.

◆ dsp_fourier_complex_get_magnitude()

double dsp_fourier_complex_get_magnitude ( dsp_complex  n)

Obtain a complex number's magnitude.

Parameters
nthe input complex.
Returns
the magnitude of the given number

Definition at line 22 of file fft.c.

◆ dsp_fourier_complex_get_phase()

double dsp_fourier_complex_get_phase ( dsp_complex  n)

Obtain a complex number's phase.

Parameters
nthe input complex.
Returns
the phase of the given number

Definition at line 27 of file fft.c.

◆ dsp_fourier_dft()

dsp_complex* dsp_fourier_dft ( dsp_stream_p  stream)

Perform a discrete Fourier Transform of a dsp_stream.

Parameters
streamthe inout stream.

Definition at line 56 of file fft.c.

◆ dsp_fourier_idft()

dsp_t* dsp_fourier_idft ( dsp_stream_p  stream)

Perform an inverse discrete Fourier Transform of a dsp_stream.

Parameters
streamthe inout stream.

Definition at line 71 of file fft.c.