Final version.
Fork of UIT_FFT_Real by
Diff: fftReal.hpp
- Revision:
- 2:9649d0e2bb4a
- Parent:
- 1:559a63853f3f
- Child:
- 3:7e761912ef10
--- 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