itpp_sci  1.0.0
it++ based simulation framework for scicoslab, scilab and scipy
sim_pam_dem.hpp
1 /*xxx
2 * \brief - SIM::pam_dem - PAM demodulator - derived from itpp::PAM
3 * \author maki
4 */
5 
6 #ifndef SIM_PAM_DEM_HPP
7 #define SIM_PAM_DEM_HPP
8 
9 #include <itpp/itbase.h>
10 #include <itpp/itcomm.h>
11 
12 #include <complex>
13 
14 using namespace itpp;
15 using namespace std;
16 
17 
18 namespace SIM
19 {
20 
25 class pam_dem : public itpp::PAM
26 {
27 private:
28  int y0;
29  int M;
30  double scale;
31 public:
33  {
34  };
35 
37  {
38  };
39 
43  void set_size(int m);
44 
48  void set_scale(double s);
49 
53  void set_output(int yout);
54 
58  int get_size();
59 
63  double get_scale();
64 
68  int get_output();
69 
75  ivec process(const bvec &ce, const vec &x);
76 
77 };
78 
79 
80 }
81 #endif //SIM_pam_dem
SIM layer implements low level simulation models with itpp base classes as operational types...
Definition: sim_amp.hpp:15
~pam_dem()
Definition: sim_pam_dem.hpp:36
Definition: _sci_assert.cpp:35
pam_dem()
Definition: sim_pam_dem.hpp:32
PAM demodulator Core function: SIM::pam_mod.process() .
Definition: sim_pam_dem.hpp:25