RTXI  2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
fir_resp.h
Go to the documentation of this file.
1 /*
2  * Functions for FirFilterResponse
3  * computes magnitude response
4  */
5 
6 #ifndef _FIR_RESP_H_
7 #define _FIR_RESP_H_
8 
9 #include "fir_dsgn.h"
10 
12 {
13 public:
14  // constructor with all configuration parameters
15 
16  FirFilterResponse(FirFilterDesign* filter_design, int num_resp_pts,
17  int db_scale_enabled, int normalize_enabled,
18  char* resp_file_name);
19 
20  //--------------------------------------
21  // method to compute magnitude response
22 
23  virtual void ComputeMagResp(void);
24 
25  //---------------------------------------
26  // method to normalize magnitude response
27 
28  void NormalizeResponse(void);
29 
30  double* GetMagResp(void);
31 
32  void DumpMagResp(void);
33 
34  double GetIntervalPeak(int beg_indx, int end_indx);
35 
36 protected:
41  int Num_Taps;
42  double* Mag_Resp;
43  //-----------------------------------
44  // stuff below is for "linear phase" filters
45  //
46  // filter band configuration: 1 = lowpass, 2 = highpass,
47  // 3 = bandpass, 4 = bandstop
48  // int Band_Config;
49  // int Fir_Type;
50  // int N1, N2, N3, N4;
51 };
52 
53 #endif
int Normalize_Enabled
Definition: fir_resp.h:40
int Db_Scale_Enabled
Definition: fir_resp.h:39
double * GetMagResp(void)
Definition: fir_resp.cpp:103
double * Mag_Resp
Definition: fir_resp.h:42
void DumpMagResp(void)
Definition: fir_resp.cpp:109
FirFilterDesign * Filter_Design
Definition: fir_resp.h:37
void NormalizeResponse(void)
Definition: fir_resp.cpp:73
FirFilterResponse(FirFilterDesign *filter_design, int num_resp_pts, int db_scale_enabled, int normalize_enabled, char *resp_file_name)
Definition: fir_resp.cpp:20
virtual void ComputeMagResp(void)
Definition: fir_resp.cpp:40
double GetIntervalPeak(int beg_indx, int end_indx)
Definition: fir_resp.cpp:119