itpp_sci  1.0.0
it++ based simulation framework for scicoslab, scilab and scipy
sim_wgn_x.hpp
1 /*xxx
2 * \brief - SIM::wgn_x - SIM layer implementation of complex WGN source
3 * \author maki
4 */
5 
6 
7 
8 #ifndef SIM_WGN_X_HPP
9 #define SIM_WGN_X_HPP
10 
11 #include <complex>
12 
13 #include <itpp/itbase.h>
14 #include <itpp/comm/sequence.h>
15 
16 #include "sim\_sim_exception.hpp"
17 #include "sim\_sim_extension.hpp"
18 
19 
20 using namespace itpp;
21 using namespace std;
22 
23 namespace SIM
24 {
29 class wgn_x
30 {
31 public:
32  complexd y0;
33  double sigma;
34  complexd mean;
35  static double normalize ;
36 
38  {
39  y0 = complexd(0.0, 0.0);
40  mean = complexd(0.0, 0.0);
41  sigma = 1.0;
42  };
43 
45  {
46  };
47 
51  void set_sigma(double s);
52 
56  void set_mean(complexd m);
57 
61  void set_output(complexd yout);
62 
66  double get_sigma(void);
67 
71  complexd get_mean(void);
72 
76  complexd get_output(void);
77 
82  cvec generate(const bvec &ce);
83 };
84 
85 } // namespace SIM
86 #endif //SIM_WGN_X_HPP
87 
double sigma
Definition: sim_wgn_x.hpp:33
SIM layer implements low level simulation models with itpp base classes as operational types...
Definition: sim_amp.hpp:15
~wgn_x()
Definition: sim_wgn_x.hpp:44
complexd mean
Definition: sim_wgn_x.hpp:34
complex value WGN generator source Core function: SIM::wgn_x.generate()
Definition: sim_wgn_x.hpp:29
complexd y0
Definition: sim_wgn_x.hpp:32
Definition: _sci_assert.cpp:35
static double normalize
Definition: sim_wgn_x.hpp:35
wgn_x()
Definition: sim_wgn_x.hpp:37