122 bool dft_init(
const char* sProgName);
126 typedef struct dft_plan
DftPlan;
141 DAS_API
DftPlan* new_DftPlan(
size_t uLen,
bool bForward);
158 DAS_API
bool del_DftPlan(
DftPlan* pThis);
167 typedef struct das_dft_t{
248 Das2Dft* pThis,
const double* pReal,
const double* pImg
299 typedef struct das_psd_t{
387 Das2Psd* pThis,
const double* pReal,
const double* pImg
396 Das2Psd* pThis,
const float* pReal,
const float* pImg
452 const Das2Psd* pThis,
double* pInput,
double* pOutput
Minimal definitions for das2 utilities that can safely be run without calling das_init().
DAS_API Das2Dft * new_Dft(DftPlan *pPlan, const char *sWindow)
Create a new DFT calculator.
DAS_API void del_Das2Psd(Das2Psd *pThis)
Free a Power Spectral Density calculator.
DAS_API DasErrCode Psd_calculate(Das2Psd *pThis, const double *pReal, const double *pImg)
Calculate a Power Spectral Density (periodogram)
DAS_API DasErrCode Dft_calculate(Das2Dft *pThis, const double *pReal, const double *pImg)
Calculate a discrete Fourier transform.
DAS_API const double * Dft_getMagnitude(Das2Dft *pThis, size_t *pLen)
Get the amplitude magnitude vector from a calculation.
DAS_API const double * Psd_get(const Das2Psd *pThis, size_t *pLen)
Get the amplitude magnitude vector from a calculation.
DAS_API const double * Dft_getReal(Das2Dft *pThis, size_t *pLen)
Return the real component after a calculation.
DAS_API double Psd_powerRatio(const Das2Psd *pThis, double *pInput, double *pOutput)
Provide a comparison of the input power and the output power.
struct dft_plan DftPlan
An structure containing a set of global planning data for DFTs to be preformed.
Definition: dft.h:126
DAS_API void del_Dft(Das2Dft *pThis)
Free a DFT (Discrete Fourier Transform) calculator.
DAS_API Das2Psd * new_Psd(DftPlan *pPlan, bool bCenter, const char *sWindow)
Create a new Power Spectral Density Calculator.
DAS_API const double * Dft_getImg(Das2Dft *pThis, size_t *pLen)
Return the imaginary component after a calculation.
DAS_API DasErrCode Psd_calculate_f(Das2Psd *pThis, const float *pReal, const float *pImg)
The floating point array input analog of Psd_calaculate()
int DasErrCode
return code type 0 indicates success, negative integer indicates failure
Definition: defs.h:164
An amplitude preserving Discrete Fourier Transform converter.
Definition: dft.h:167
A power spectral density estimator (periodogram)
Definition: dft.h:299