fftw_plan plan = fftw_plan_dft_r2c_1d(
fftAnaSrcPoints,
ppFFTSrcValue[k],
ppFFTComplexDst[k], FFTW_ESTIMATE);
if (NULL != plan)
{
fftw_execute(plan);
fftw_destroy_plan(plan);
for (int j = 0; j < fftAnaSrcPoints; j++)
{
double dAmp = sqrt(pow(ppFFTComplexDst[k][j][0], 2) + pow(ppFFTComplexDst[k][j][1], 2));
ppFFTComplexDstAmp[k][j] = dAmp / (fftAnaSrcPoints / 2);
}
ppFFTComplexDstAmp[k][0] = 0;
}
频谱分析
最新推荐文章于 2023-04-23 18:43:02 发布