polar_freq_dom_filt.cpp
上传用户:jtjnyq9001
上传日期:2014-11-21
资源大小:3974k
文件大小:13k
源码类别:
3G开发
开发平台:
Visual C++
- //
- // File = polar_freq_dom_filt.cpp
- //
- #include <stdlib.h>
- #include <fstream>
- #include "parmfile.h"
- #include "polar_freq_dom_filt.h"
- #include "misdefs.h"
- #include "model_graph.h"
- #include "sigplot.h"
- #include "dit_pino_T.h"
- #include "dit_nipo_T.h"
- #include "complex_io.h"
- extern ParmFile *ParmInput;
- extern SignalPlotter SigPlot;
- extern int PassNumber;
- //ofstream CorrFile("corr_res.txt", ios::out);
- //======================================================
- PolarFreqDomainFilter::PolarFreqDomainFilter( char* instance_name,
- PracSimModel* outer_model,
- Signal< std::complex<float> >* in_sig,
- Signal< std::complex<float> >* out_sig)
- :PracSimModel(instance_name,
- outer_model)
- {
- MODEL_NAME(PolarFreqDomainFilter);
- ENABLE_MULTIRATE;
- In_Sig = in_sig;
- Out_Sig = out_sig;
- OPEN_PARM_BLOCK;
- GET_INT_PARM(Fft_Size);
- GET_DOUBLE_PARM(Dt_For_Fft);
- GET_FLOAT_PARM(Overlap_Save_Mem);
- GET_BOOL_PARM(Bypass_Enabled);
- Magnitude_Data_Fname = new char[64];
- strcpy(Magnitude_Data_Fname, "