dan_pdgm.h
上传用户:jtjnyq9001
上传日期:2014-11-21
资源大小:3974k
文件大小:1k
源码类别:

3G开发

开发平台:

Visual C++

  1. //
  2. //  File = dan_pdgm.h
  3. //
  4. #ifndef _DAN_PDGM_H_
  5. #define _DAN_PDGM_H_
  6. #include "psmodel.h"
  7. #include "signal_T.h"
  8. #include "spect_calc_kinds.h"
  9. #include "samp_spect.h"
  10. //#include "compress.h"
  11. //#include "dirform1.h"
  12. //using namespace std;
  13. template <class T>
  14. class DaniellPeriodogram : public PracSimModel
  15. {
  16. public:
  17.   DaniellPeriodogram( char* instance_name,
  18.                     PracSimModel* outer_model,
  19.                     Signal<T>* in_sig );
  20.   ~DaniellPeriodogram(void);
  21.   void Initialize(void);
  22.   int Execute(void);
  23. private:
  24.   int Block_Size;
  25.   Signal<T> *In_Sig;
  26.   std::complex<double> *Freq_Seg;
  27.   double *Dan_Pdgm;
  28.   double Samp_Intvl;
  29.   //double *Sample_Spectrum;
  30.   T *Time_Seg;
  31.   double *Psd_Est;
  32.   int Big_P;
  33.   int Fft_Len;
  34.   int Hold_Off;
  35.   int Seg_Len;
  36.   int Samps_Needed;
  37.   char *Psd_File_Name;
  38.   ofstream *Psd_File;
  39.   bool Halt_When_Completed;
  40.   bool Processing_Completed;
  41.   bool Output_In_Decibels;
  42.   bool Plot_Two_Sided;
  43.   double Delta_F;
  44.   double Norm_Factor;
  45.   double Freq_Norm_Factor;
  46.   //void (*Spectrum_Calc)( T* time_signal,
  47.   //                   double* psd_estimate,
  48.   //                   int num_samps,
  49.   //                   int fft_len,
  50.   //                   double samp_intvl );
  51.    KIND_OF_SPECT_CALC_T Kind_Of_Spec_Estim;
  52. };
  53. #endif //_DAN_PDGM_H_