Changeset 1630 in Sophya for trunk/SophyaLib/NTools/fftservintf.h
- Timestamp:
- Aug 8, 2001, 12:39:10 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/NTools/fftservintf.h
r1405 r1630 38 38 virtual void FFTForward(TArray< complex<r_8> > const & in, TArray< complex<r_8> > & out); 39 39 virtual void FFTBackward(TArray< complex<r_8> > const & in, TArray< complex<r_8> > & out); 40 virtual r_8 TransfEnergyFFT(TVector< complex<r_8> > const & x, TVector< complex<r_8> > const& fftx 41 , r_8& A, r_8& B); 42 //! Compute the factor to be applied to "fftx=FFT(x)" so that "x" and "FFT(x)" have the same energy 43 virtual inline r_8 TransfEnergyFFT(TVector< complex<r_8> > const & x, TVector< complex<r_8> > const& fftx) 44 {r_8 A,B; return TransfEnergyFFT(x,fftx,A,B);} 45 40 46 virtual void FFTForward(TArray< r_8 > const & in, TArray< complex<r_8> > & out); 41 47 virtual void FFTBackward(TArray< complex<r_8> > const & in, TArray< r_8 > & out, 42 48 bool usoutsz=false); 49 virtual r_8 TransfEnergyFFT(TVector< r_8 > const & x, TVector< complex<r_8> > const& fftx 50 , r_8& A, r_8& B); 51 //! Compute the factor to be applied to "fftx=FFT(x)" so that "x" and "FFT(x)" have the same energy 52 virtual inline r_8 TransfEnergyFFT(TVector< r_8 > const & x, TVector< complex<r_8> > const& fftx) 53 {r_8 A,B; return TransfEnergyFFT(x,fftx,A,B);} 43 54 44 55 // Transforme N-dim sur des float 45 56 virtual void FFTForward(TArray< complex<r_4> > const & in, TArray< complex<r_4> > & out); 46 57 virtual void FFTBackward(TArray< complex<r_4> > const & in, TArray< complex<r_4> > & out); 58 virtual r_8 TransfEnergyFFT(TVector< complex<r_4> > const & x, TVector< complex<r_4> > const& fftx 59 , r_8& A, r_8& B); 60 //! Compute the factor to be applied to "fftx=FFT(x)" so that "x" and "FFT(x)" have the same energy 61 virtual inline r_8 TransfEnergyFFT(TVector< complex<r_4> > const & x, TVector< complex<r_4> > const& fftx) 62 {r_8 A,B; return TransfEnergyFFT(x,fftx,A,B);} 63 47 64 virtual void FFTForward(TArray< r_4 > const & in, TArray< complex<r_4> > & out); 48 65 virtual void FFTBackward(TArray< complex<r_4> > const & in, TArray< r_4 > & out, 49 66 bool usoutsz=false); 67 virtual r_8 TransfEnergyFFT(TVector< r_4 > const & x, TVector< complex<r_4> > const& fftx 68 , r_8& A, r_8& B); 69 //! Compute the factor to be applied to "fftx=FFT(x)" so that "x" and "FFT(x)" have the same energy 70 virtual inline r_8 TransfEnergyFFT(TVector< r_4 > const & x, TVector< complex<r_4> > const& fftx) 71 {r_8 A,B; return TransfEnergyFFT(x,fftx,A,B);} 50 72 51 73 protected:
Note:
See TracChangeset
for help on using the changeset viewer.