itpp_sci  1.0.0
it++ based simulation framework for scicoslab, scilab and scipy
sim_tedg_x.hpp
1 /*xxx
2 * \brief - SIM::tedg_x - dual timing error detector - gardner with mods
3 * \author maki
4 */
5 
6 #ifndef SIM_TEDG_X_HPP
7 #define SIM_TEDG_X_HPP
8 
9 #include <itpp/itbase.h>
10 #include <complex>
11 #include "sim\_sim_extension.hpp"
12 
13 #include "sim\_sim_enum_def.h"
14 
15 using namespace itpp;
16 using namespace std;
17 
18 namespace SIM
19 {
24 class tedg_x
25 {
26 private:
27  complexd x0, x1, x2;
28  complexd y0;
29  tedg_mode op_mode;
30  double quantum;
31 public:
32 
34  {
35  x0 = complexd(0, 0);
36  x1 = x0;
37  x2 = x1;
38  op_mode = TEDG_MODE_STD;
39  quantum = 1.0;
40  };
41 
43  {
44  };
45 
49  void set_mode(int m);
50 
54  void set_quantum(double p);
55 
59  void set_output(complexd yout);
60 
64  int get_mode(void);
65 
69  double get_quantum(void);
70 
74  complexd get_output(void);
75 
82  cvec process(const bmat &ceio, const cvec &x);
83 };
84 
85 }// namespace SIM
86 #endif //SIM_TEDG_X_HPP
87 
~tedg_x()
Definition: sim_tedg_x.hpp:42
tedg_x()
Definition: sim_tedg_x.hpp:33
SIM layer implements low level simulation models with itpp base classes as operational types...
Definition: sim_amp.hpp:15
dual timing error detector - gardner with mods Core function: SIM::tedg_x.process() ...
Definition: sim_tedg_x.hpp:24
Definition: _sci_assert.cpp:35