itpp_sci  1.0.0
it++ based simulation framework for scicoslab, scilab and scipy
sim_amp_x.hpp
1 /*xxx
2  * \brief - SIM::amp_x - complex gain block
3  * \author maki
4  */
5 
6 
7 #ifndef SIM_AMP_X_HPP
8 #define SIM_AMP_X_HPP
9 
10 #include <complex>
11 
12 #include <itpp/itbase.h>
13 #include "sim\_sim_extension.hpp"
14 
15 using namespace itpp;
16 using namespace std;
17 
18 namespace SIM
19 {
20 
30 class amp_x
31 {
32  complexd y0;
33  complexd gain;
34  complexd offset;
35 
36 public:
37 
39  {
40  y0 = complexd(0.0, 0.0);
41  gain = complexd(1.0, 0.0);
42  offset = complexd (0.0, 0.0);
43  } ;
44 
45  ~amp_x()
46  {
47  };
48 
52  void set_gain(complexd g);
53 
57  void set_offset(complexd o);
58 
62  void set_output(complexd yout);
63 
67  complexd get_gain(void);
68 
72  complexd get_offset(void);
73 
77  complexd get_output(void);
78 
84  cvec process(const bvec &ce, const cvec &x);
85 };
86 
87 } // namespace SIM
88 #endif //SIM_AMP_X_HPP
89 
complex gain block with offset Core function SIM::amp_x.process()
Definition: sim_amp_x.hpp:30
SIM layer implements low level simulation models with itpp base classes as operational types...
Definition: sim_amp.hpp:15
amp_x()
Definition: sim_amp_x.hpp:38
Definition: _sci_assert.cpp:35
~amp_x()
Definition: sim_amp_x.hpp:45