/*
* Copyright (c) 2008-2011 Zhang Ming (M. Zhang), zmjerry@163.com
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 2 or any later version.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details. A copy of the GNU General Public License is available at:
* http://www.fsf.org/licensing/licenses
*/
/*****************************************************************************
* fft.h
*
* Some convenient interface for FFT algorithm. If signal length "N" is power
* of 2, then calls FFTR2 class to compute, else calls FFTPF class.
* Forward: Xk = fftr2c(xn); Xk = fftc2c(xn);
* Inverse: xn = fftc2r(Xk); xn = fftc2c(Xk);
*
* These routines don't need FFTW lib, but less efficiency than FFTW.
*
* Zhang Ming, 2010-09, Xi'an Jiaotong University.
*****************************************************************************/
#ifndef FFT_H
#define FFT_H
#include <fftmr.h>
#include <fftpf.h>
namespace splab
{
template<typename Type>
Vector< complex<Type> > fft( const Vector<Type>& );
template<typename Type>
Vector< complex<Type> > fft( const Vector< complex<Type> >& );
template<typename Type>
Vector< complex<Type> > ifft( const Vector< complex<Type> >& );
template<typename Type>
Vector< complex<Type> > fftr2c( const Vector<Type>& );
template<typename Type>
Vector< complex<Type> > fftc2c( const Vector< complex<Type> >& );
template<typename Type>
Vector<Type> ifftc2r( const Vector< complex<Type> >& );
template<typename Type>
Vector< complex<Type> > ifftc2c( const Vector< complex<Type> >& );
#include <fft-impl.h>
}
// namespace splab
#endif
// FFT_H
fft.zip_fft
版权申诉
193 浏览量
2022-09-14
23:28:04
上传
评论
收藏 1KB ZIP 举报
刘良运
- 粉丝: 71
- 资源: 1万+
最新资源
- 毕业项目:网上图书订阅管理系统的设计与开发(ASP.NET技术+程序源代码+毕业文档)
- zjk-1.ipynb
- Delphi 12 控件之EhLib.v10.2.42 for Delphi 5-12.src.rar
- cloudreve3.8.3的docker镜像
- RB108A-SOT23-5封装 单节锂电池保护IC 深圳市可芯电子有限公司.pdf
- Apache Maven的安装与配置.pdf
- 2024高质量PS练习教程,全程干货无废话
- TPLINK TL-NVR6116K-L 升级包
- RB301A-SOT23-5 单节锂电池保护IC 深圳市可芯电子有限公司.pdf
- scrt-x64-bsafe.9.5.2.3325.exe
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈