FFT for real data using decimation-in-frequency algorithm. 実データに対するFFT.周波数間引きアルゴリズムを使用. このライブラリを登録した際のプログラム: Demo_FFT_IFFT
Dependents: UIT2_SpectrumAnalyzer F746_SpectralAnalysis_NoPhoto F746_FFT_Speed F746_RealtimeSpectrumAnalyzer ... more
Diff: fftReal.hpp
- Revision:
- 4:0b4975fffc90
- Parent:
- 3:dc123081d491
--- a/fftReal.hpp Mon Jan 13 08:54:18 2020 +0000 +++ b/fftReal.hpp Sat Dec 12 03:20:09 2020 +0000 @@ -1,19 +1,18 @@ //------------------------------------------------------------------- // データが実数の場合の FFT class(ヘッダ) // -// 2020/01/13, Copyright (c) 2020 MIKAMI, Naoki +// 2020/12/12, Copyright (c) 2020 MIKAMI, Naoki //------------------------------------------------------------------- #ifndef FFT_REAL_HPP #define FFT_REAL_HPP -#include "mbed.h" +#include "Array.hpp" // "Array_Matrix" という名前で Mbed に登録 #include <complex> // complex で使用 -#include "Array.hpp" // "Array_Matrix" という名前で Mbed に登録 namespace Mikami { - typedef complex<float> Complex; // define "Complex" + typedef complex<float> Complex; // "Complex" の定義 class FftReal { @@ -34,12 +33,12 @@ // 最終ステージを除いた処理 void ExcludeLastStage(); - // IFFT の美と逆順の並べ替えで使用 - int Index(int n) { return (N_FFT_-bTable_[n]); } + // IFFT のビット逆順の並べ替えで使用 + int Index(int n) const { return (N_FFT_-bTable_[n]); } // コピー・コンストラクタおよび代入演算子の禁止のため FftReal(const FftReal& ); FftReal& operator=(const FftReal& ); }; } -#endif // FFT_REAL_HPP \ No newline at end of file +#endif // FFT_REAL_HPP