andf1fir.cpp
上传用户:jtjnyq9001
上传日期:2014-11-21
资源大小:3974k
文件大小:6k
- //
- // File = andf1fir.cpp
- //
- #include <stdlib.h>
- #include <fstream>
- #include <math.h>
- #include "parmfile.h"
- #include "andf1fir.h"
- #include "fir_resp_w_noise_bw.h"
- #include "model_graph.h"
- #include "sigstuff.h"
- #include "syst_graph.h"
- #include "misdefs.h"
- extern ParmFile *ParmInput;
- //extern ActiveSystemGraph ActSystGraph;
- #ifdef _DEBUG
- extern ofstream *DebugFile;
- #endif
- //======================================================
- AnlgDirectFormFir::AnlgDirectFormFir( char* instance_name,
- PracSimModel* outer_model,
- Signal<float>* in_sig,
- Signal<float>* out_sig )
- :PracSimModel(instance_name,
- outer_model)
- {
- In_Sig = in_sig;
- Out_Sig = out_sig;
- OPEN_PARM_BLOCK;
- GET_BOOL_PARM(Bypass_Enabled);
- GET_INT_PARM( Kind_Of_Filter_Resp );
- GET_DOUBLE_PARM( Fixed_Gain );
- if(Kind_Of_Filter_Resp == 3) {
- Coeff_Fname = new char[64];
- strcpy(Coeff_Fname, "