itpp_sci  1.0.0
it++ based simulation framework for scicoslab, scilab and scipy
sim_qam_dem.hpp
1 /*
2 * \brief - SIM::qam_dem - derived from itpp::QAM
3 * \author maki
4 */
5 
6 #ifndef SIM_QAM_DEM_HPP
7 #define SIM_QAM_DEM_HPP
8 
9 #include <itpp/itbase.h>
10 #include <itpp/itcomm.h>
11 
12 #include <complex>
13 #include "sim\_sim_extension.hpp"
14 
15 using namespace itpp;
16 using namespace std;
17 
18 namespace SIM
19 {
20 
26 class qam_dem : public itpp::QAM
27 {
28 private:
29  int y0;
30  int M;
31  double scale;
32 
33 public:
35  {
36  y0 = 0;
37  };
38 
40  {
41  };
42 
46  void set_size(int m);
47 
51  void set_scale(double s);
52 
56  void set_output(int yout);
57 
61  int get_size();
62 
66  double get_scale();
67 
71  int get_output();
72 
78  ivec process(const bvec &ce, const cvec &x);
79 
80 };
81 
82 
83 }
84 #endif //SIM_qam_dem
qam_dem()
Definition: sim_qam_dem.hpp:34
QAM demodulator Core function: SIM::qam_dem.process() .
Definition: sim_qam_dem.hpp:26
SIM layer implements low level simulation models with itpp base classes as operational types...
Definition: sim_amp.hpp:15
Definition: _sci_assert.cpp:35
~qam_dem()
Definition: sim_qam_dem.hpp:39