Changeset 1630 in Sophya for trunk/SophyaLib/NTools/fftservintf.h


Ignore:
Timestamp:
Aug 8, 2001, 12:39:10 PM (24 years ago)
Author:
cmv
Message:

routines de normalisation des fft cmv 8/8/01

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/NTools/fftservintf.h

    r1405 r1630  
    3838  virtual void FFTForward(TArray< complex<r_8> > const & in, TArray< complex<r_8> > & out);
    3939  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
    4046  virtual void FFTForward(TArray< r_8 > const & in, TArray< complex<r_8> > & out);
    4147  virtual void FFTBackward(TArray< complex<r_8> > const & in, TArray< r_8 > & out,
    4248                           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);}
    4354
    4455  // Transforme N-dim sur des float
    4556  virtual void FFTForward(TArray< complex<r_4> > const & in, TArray< complex<r_4> > & out);
    4657  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
    4764  virtual void FFTForward(TArray< r_4 > const & in, TArray< complex<r_4> > & out);
    4865  virtual void FFTBackward(TArray< complex<r_4> > const & in, TArray< r_4 > & out,
    4966                           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);}
    5072
    5173 protected:
Note: See TracChangeset for help on using the changeset viewer.