【VC++开源代码栏目提醒】:以下是网学会员为您推荐的VC++开源代码-快速傅里叶变换(FFT)源代码(VC) - 培训资料,希望本篇文章对您学习有所帮助。
快速傅里叶变换FFT源
代码VC2009-11-14 19:12为了看明白那堆积分变换不得不把复变函数扫了一遍可看完了才发现原来这堆变换说白了只是一些数字游戏Examda提示: 也没用到啥复变函数的知识。
最后用C程序实现了下FFT也算告一段落
代码如下 include include include using namespace std const double PI 3.14323846 int n // 数据个数 2的logn次方 int logn /// 复数结构体 struct stCompNum double re double im stCompNum pData1 NULL stCompNum pData2 NULL /// Examda提示: 正整数位逆序后输出 int reverseBitsint value int bitCnt int i int ret 0 fori0 i 1 return ret void main ifstream findata.txt int ijk // input logn finlogn // calculate n fori0 n1 ipData1i.re fori0 ipData1i.im // FFT transform int cnt 1 fork0 k
上一篇:
vc++毕业设计参考题目免费下载
下一篇:
4种小菜缓解孕妈咪不适