120 bool dft_init(
const char* sProgName);
139 DftPlan* new_DftPlan(
size_t uLen,
bool bForward);
156 bool del_DftPlan(
DftPlan* pThis);
165 typedef struct das_dft_t{
246 Das2Dft* pThis,
const double* pReal,
const double* pImg
297 typedef struct das_psd_t{
385 Das2Psd* pThis,
const double* pReal,
const double* pImg
394 Das2Psd* pThis,
const float* pReal,
const float* pImg
const double * Psd_get(const Das2Psd *pThis, size_t *pLen)
Get the amplitude magnitude vector from a calculation.
void del_Das2Psd(Das2Psd *pThis)
Free a Power Spectral Density calculator.
int DasErrCode
return code type 0 indicates success, negative integer indicates failure
Definition: util.h:117
void del_Dft(Das2Dft *pThis)
Free a DFT (Discrete Fourier Transform) calculator.
Das2Psd * new_Psd(DftPlan *pPlan, bool bCenter, const char *sWindow)
Create a new Power Spectral Density Calculator.
const double * Dft_getReal(Das2Dft *pThis, size_t *pLen)
Return the real component after a calculation.
An amplitude preserving Discrete Fourier Transform converter.
Definition: dft.h:165
DasErrCode Psd_calculate(Das2Psd *pThis, const double *pReal, const double *pImg)
Calculate a Power Spectral Density (periodogram)
A power spectral density estimator (periodogram)
Definition: dft.h:297
DasErrCode Psd_calculate_f(Das2Psd *pThis, const float *pReal, const float *pImg)
The floating point array input analog of Psd_calaculate()
DasErrCode Dft_calculate(Das2Dft *pThis, const double *pReal, const double *pImg)
Calculate a discrete Fourier transform.
double Psd_powerRatio(const Das2Psd *pThis, double *pInput, double *pOutput)
Provide a comparison of the input power and the output power.
Das2Dft * new_Dft(DftPlan *pPlan, const char *sWindow)
Create a new DFT calculator.
struct dft_plan DftPlan
An structure containing a set of global planning data for DFTs to be preformed.
Definition: dft.h:124
const double * Dft_getMagnitude(Das2Dft *pThis, size_t *pLen)
Get the amplitude magnitude vector from a calculation.
const double * Dft_getImg(Das2Dft *pThis, size_t *pLen)
Return the imaginary component after a calculation.