Final version.
Fork of UIT_FFT_Real by
Diff: fftReal.cpp
- Revision:
- 1:559a63853f3f
- Parent:
- 0:982a9acf3a07
- Child:
- 2:9649d0e2bb4a
--- a/fftReal.cpp Fri Dec 19 12:10:34 2014 +0000 +++ b/fftReal.cpp Thu Oct 29 06:32:40 2015 +0000 @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // FFT class for real data usind decimation-in-frequency algorithm // This class can execute FFT and IFFT -// Copyright (c) 2014 MIKAMI, Naoki, 2014/12/19 +// Copyright (c) 2015 MIKAMI, Naoki, 2015/10/29 //------------------------------------------------------------------------------ #include "fftReal.hpp" @@ -51,7 +51,7 @@ for (int n=0; n<N_FFT_; n++) u_[n] = x[n]; // except for last stage - ExcludeLastTtage(); + ExcludeLastStage(); // Last stage y[0] = u_[0] + u_[1]; @@ -74,7 +74,7 @@ u_[n] = conj(y[N_FFT_-n]); // except for last stage - ExcludeLastTtage(); + ExcludeLastStage(); // Last stage including bit reversal x[0] = N_INV_*(u_[0].real() + u_[1].real()); @@ -90,7 +90,7 @@ } // Processing except for last stage - void FftReal::ExcludeLastTtage() + void FftReal::ExcludeLastStage() { uint16_t nHalf = N_FFT_/2; for (int stg=1; stg<N_FFT_/2; stg*=2) @@ -113,3 +113,4 @@ } } +