itpp_sci  1.0.0
it++ based simulation framework for scicoslab, scilab and scipy
sim_fir_x.hpp
1 /*xxx
2 * \brief SIM class for complex fir filter
3 * \author maki
4 */
5 
6 
7 
8 #ifndef SIM_FIR_X_HPP
9 #define SIM_FIR_X_HPP
10 
11 #include "sim\_sim_extension.hpp"
12 
13 #include "spuc_fir.hpp"
14 
15 using namespace itpp;
16 using namespace std;
17 using namespace SPUC;
18 
19 
20 namespace SIM
21 {
22 
23 
36 class fir_x : public SPUC::fir < complexd >
37 {
38 public:
39  complexd y0;
40 
42  {
43  y0 = (0.0, 0.0);
44  };
45 
47  {
48  };
49 
53  void set_state(const cvec &cv);
54 
58  void set_output(complexd yout);
59 
63  cvec get_state(void);
64 
68  complexd get_output(void);
69 
75  cvec process(const bvec &ce, const cvec &x);
76 };
77 
78 }
79 #endif //SIM_FIR_X
80 
SIM layer implements low level simulation models with itpp base classes as operational types...
Definition: sim_amp.hpp:15
Definition: spuc_fir.hpp:19
Definition: _sci_assert.cpp:35
~fir_x()
Definition: sim_fir_x.hpp:46
fir_x()
Definition: sim_fir_x.hpp:41
complexd y0
filter output, initialized to (0.0+j0.0) by constructor
Definition: sim_fir_x.hpp:39
complex FIR filter Core function: SIM::fir_x.process()
Definition: sim_fir_x.hpp:36