spec_analyzer.cpp
上传用户:jtjnyq9001
上传日期:2014-11-21
资源大小:3974k
文件大小:9k
- //
- // File =spec_analyzer.cpp
- //
- #include <stdlib.h>
- #include <fstream>
- #include "parmfile.h"
- #include "model_graph.h"
- #include "spec_analyzer.h"
- #include "hann.h"
- #include "misdefs.h"
- #include "fft_T.h"
- #include "samp_spect_util.h"
- #include "bart_pdgm_util.h"
- #ifdef _DEBUG
- extern ofstream *DebugFile;
- #endif
- extern ParmFile *ParmInput;
- extern int PassNumber;
- extern char *DateString;
- extern bool DateInFileNames;
- //======================================================
- template <class T>
- SpectrumAnalyzer<T>::SpectrumAnalyzer( char* instance_name,
- PracSimModel* outer_model,
- Signal<T>* in_sig )
- :PracSimModel( instance_name,
- outer_model )
- {
- MODEL_NAME(SpectrumAnalyzer_T);
- OPEN_PARM_BLOCK;
- Kind_Of_Spec_Estim = GetKindOfSpectCalcParm("Kind_Of_Spec_Estim ");
- GET_INT_PARM(Num_Segs_To_Avg);
- GET_INT_PARM(Seg_Len);
- GET_INT_PARM(Fft_Len);
- GET_INT_PARM(Hold_Off);
- //Psd_File_Name = new char[255];
- //strcpy(Psd_File_Name, "