bart_pdgm_wind.cpp
上传用户:jtjnyq9001
上传日期:2014-11-21
资源大小:3974k
文件大小:6k
- //
- // File = bart_pdgm_wind.cpp
- //
- #include <stdlib.h>
- #include "parmfile.h"
- #include "model_graph.h"
- #include "bart_pdgm_wind.h"
- #include "trianglr.h"
- #include "hamming.h"
- #include "hann.h"
- #include "fft_T.h"
- #include "dump_spect.h"
- #ifdef _DEBUG
- extern ofstream *DebugFile;
- #endif
- #define _NO_ZERO_ENDS 0
- #define _ZERO_ENDS 1
- extern ParmFile *ParmInput;
- extern int PassNumber;
- //======================================================
- template <class T>
- BartlettPeriodogramWindowed<T>::
- BartlettPeriodogramWindowed(
- char* instance_name,
- PracSimModel* outer_model,
- Signal<T>* in_sig )
- :PracSimModel( instance_name,
- outer_model )
- {
- int is;
- MODEL_NAME(BartlettPeriodogram);
- OPEN_PARM_BLOCK;
- GET_INT_PARM(Seg_Len);
- GET_INT_PARM(Fft_Len);
- GET_INT_PARM(Hold_Off);
- GET_INT_PARM(Num_Segs_To_Avg);
- GET_DOUBLE_PARM(Freq_Norm_Factor);
- GET_BOOL_PARM(Output_In_Decibels);
- GET_BOOL_PARM(Plot_Two_Sided);
- GET_BOOL_PARM(Halt_When_Completed);
- GET_BOOL_PARM(Using_Window);
- Psd_File_Name = new char[64];
- strcpy(Psd_File_Name, "