RTXI  2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
filtfunc.h
Go to the documentation of this file.
1 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 //
3 // File = filtfunc.h
4 //
5 //
6 
7 #ifndef _FILTFUNC_H_
8 #define _FILTFUNC_H_
9 
10 #include "poly.h"
11 #include "typedefs.h"
12 #include <fstream>
13 
15 {
16 public:
17  FilterTransFunc(void);
18 
19  FilterTransFunc(int order);
20 
21  void FilterFrequencyResponse(void);
22 
23  complex* GetPrototypePoles(int* num_poles);
24 
25  complex* GetPoles(int* num_poles);
26 
27  complex GetPole(int pole_indx);
28 
29  complex* GetPrototypeZeros(int* num_zeros);
30 
31  complex* GetZeros(int* num_zeros);
32 
33  complex GetZero(int zero_indx);
34 
35  void LowpassDenorm(double cutoff_freq_hz);
36 
37  int GetNumPoles(void);
38 
39  int GetNumZeros(void);
40 
41  float GetHSubZero(void);
42 
43  void DumpBiquads(std::ofstream* output_stream);
44 
46 
48 
49  void FrequencyPrewarp(double sampling_interval);
50 
51 protected:
61  // double Denorm_Cutoff_Freq_Hz;
63  double* A_Biquad_Coef;
64  double* B_Biquad_Coef;
65  double* C_Biquad_Coef;
66  double H_Sub_Zero;
73  std::ofstream* Response_File;
74 };
75 
76 #endif
int Num_Biquad_Sects
Definition: filtfunc.h:59
std::ofstream * Response_File
Definition: filtfunc.h:73
Polynomial GetDenomPoly(void)
Definition: filtfunc.cpp:305
complex * GetPrototypePoles(int *num_poles)
Definition: filtfunc.cpp:49
int Num_Denorm_Poles
Definition: filtfunc.h:53
complex * Denorm_Zero_Locs
Definition: filtfunc.h:70
complex * GetPoles(int *num_poles)
Definition: filtfunc.cpp:58
complex * GetZeros(int *num_zeros)
Definition: filtfunc.cpp:238
int logical
Definition: typedefs.h:4
double * C_Biquad_Coef
Definition: filtfunc.h:65
double * B_Biquad_Coef
Definition: filtfunc.h:64
complex * Denorm_Pole_Locs
Definition: filtfunc.h:69
void FrequencyPrewarp(double sampling_interval)
Definition: filtfunc.cpp:109
complex GetPole(int pole_indx)
Definition: filtfunc.cpp:71
double * A_Biquad_Coef
Definition: filtfunc.h:63
Polynomial GetNumerPoly(void)
Definition: filtfunc.cpp:340
Polynomial Denom_Poly
Definition: filtfunc.h:71
logical Filter_Is_Denormalized
Definition: filtfunc.h:60
int Num_Denorm_Zeros
Definition: filtfunc.h:54
Polynomial Numer_Poly
Definition: filtfunc.h:72
double H_Sub_Zero
Definition: filtfunc.h:66
int GetNumPoles(void)
Definition: filtfunc.cpp:206
int Num_Prototype_Zeros
Definition: filtfunc.h:58
void FilterFrequencyResponse(void)
Definition: filtfunc.cpp:144
double Denorm_Cutoff_Freq_Rad
Definition: filtfunc.h:62
void LowpassDenorm(double cutoff_freq_hz)
Definition: filtfunc.cpp:276
int GetNumZeros(void)
Definition: filtfunc.cpp:217
complex * Prototype_Pole_Locs
Definition: filtfunc.h:67
float GetHSubZero(void)
Definition: filtfunc.cpp:253
int Filter_Order
Definition: filtfunc.h:52
int Degree_Of_Numer
Definition: filtfunc.h:56
complex GetZero(int zero_indx)
Definition: filtfunc.cpp:90
int Num_Prototype_Poles
Definition: filtfunc.h:57
void DumpBiquads(std::ofstream *output_stream)
Definition: filtfunc.cpp:262
complex * GetPrototypeZeros(int *num_zeros)
Definition: filtfunc.cpp:229
int Degree_Of_Denom
Definition: filtfunc.h:55
complex * Prototype_Zero_Locs
Definition: filtfunc.h:68
FilterTransFunc(void)
Definition: filtfunc.cpp:22