自分用に書き換えてしまったので forkします
Fork of UIT_FFT_Real by
Revision 3:9649d0e2bb4a, committed 2015-12-18
- Comitter:
- MikamiUitOpen
- Date:
- Fri Dec 18 10:01:28 2015 +0000
- Parent:
- 2:559a63853f3f
- Commit message:
- 3
Changed in this revision
fftReal.cpp | Show annotated file Show diff for this revision Revisions of this file |
fftReal.hpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 559a63853f3f -r 9649d0e2bb4a fftReal.cpp --- a/fftReal.cpp Thu Oct 29 06:32:40 2015 +0000 +++ b/fftReal.cpp Fri Dec 18 10:01:28 2015 +0000 @@ -113,4 +113,3 @@ } } -
diff -r 559a63853f3f -r 9649d0e2bb4a fftReal.hpp --- a/fftReal.hpp Thu Oct 29 06:32:40 2015 +0000 +++ b/fftReal.hpp Fri Dec 18 10:01:28 2015 +0000 @@ -1,7 +1,7 @@ //------------------------------------------------------------------- // FFT class for real data ---- Header // This class can execute FFT and IFFT -// Copyright (c) 2015 MIKAMI, Naoki, 2015/10/29 +// Copyright (c) 2015 MIKAMI, Naoki, 2015/12/18 //------------------------------------------------------------------- #ifndef FFT_REAL_HPP @@ -16,6 +16,16 @@ class FftReal { + public: + // Constructor + explicit FftReal(int16_t n); + // Destructor + ~FftReal(); + // Execute FFT + void Execute(const float x[], Complex y[]); + // Execute IFFT + void ExecuteIfft(const Complex y[], float x[]); + private: const int N_FFT_; const float N_INV_; @@ -29,18 +39,9 @@ // Use for reordering of rit reversal in IFFT int Index(int n) { return (N_FFT_-bTable_[n]); } + // disallow copy constructor and assignment operator FftReal(const FftReal& ); FftReal& operator=(const FftReal& ); - - public: - // Constructor - explicit FftReal(int16_t n); - // Destructor - ~FftReal(); - // Execute FFT - void Execute(const float x[], Complex y[]); - // Execute IFFT - void ExecuteIfft(const Complex y[], float x[]); }; } #endif // FFT_REAL_HPP