The experiment using this program is introduced on "Interface" No.4, CQ publishing Co.,Ltd, 2015. 本プログラムを使った実験は,CQ出版社のインターフェース 2015年4月号で紹介しています.
Dependencies: DSProcessingIO mbed
fftReal.hpp
00001 //------------------------------------------------------------------- 00002 // FFT class for real data (Header) 00003 // Copyright (c) 2014 MIKAMI, Naoki, 2014/06/29 00004 //------------------------------------------------------------------- 00005 00006 #ifndef FFT_REAL_HPP 00007 #define FFT_REAL_HPP 00008 00009 #include "mbed.h" 00010 #include <complex> // requisite 00011 00012 namespace Mikami 00013 { 00014 typedef complex<float> Complex; // define "Complex" 00015 00016 class FftReal 00017 { 00018 private: 00019 const int N_FFT_; 00020 Complex* wTable_; // twiddle factor 00021 uint16_t* bTable_; // for bit reversal 00022 Complex* u_; // working area 00023 00024 FftReal(const FftReal& ); 00025 FftReal& operator=(const FftReal& ); 00026 00027 public: 00028 // Constructor 00029 explicit FftReal(uint16_t n); 00030 // Destructor 00031 ~FftReal(); 00032 // Execute FFT 00033 void Execute(const float x[], Complex y[]); 00034 }; 00035 } 00036 #endif // FFT_REAL_HPP 00037
Generated on Wed Jul 13 2022 05:20:41 by 1.7.2