itpp_sci  1.0.0
it++ based simulation framework for scicoslab, scilab and scipy
sim_wgn.hpp
1 /*xxx
2 * \brief - SIM::wgn - SIM layer implementation of WGN source
3 * \author maki
4 */
5 
6 #ifndef SIM_WGN_HPP
7 #define SIM_WGN_HPP
8 
9 #include <itpp/itbase.h>
10 #include <itpp/comm/sequence.h>
11 
12 using namespace itpp;
13 using namespace std;
14 
15 namespace SIM
16 {
17 
22 class wgn
23 {
24 public:
25  double y0;
26  double sigma;
27  double mean;
28 
29  wgn()
30  {
31  y0 = 0.0;
32  mean = 0.0;
33  sigma = 1.0;
34  };
35 
36  ~wgn()
37  {
38  };
39 
43  void set_sigma(double s);
44 
48  void set_mean(double m);
49 
53  void set_output(double yout);
54 
58  double get_sigma(void);
59 
63  double get_mean(void);
64 
68  double get_output(void);
69 
74  vec generate(const bvec &ce);
75 };
76 
77 } // namespace SIM
78 #endif //SIM_WGN_HPP
79 
double y0
Definition: sim_wgn.hpp:25
wgn()
Definition: sim_wgn.hpp:29
SIM layer implements low level simulation models with itpp base classes as operational types...
Definition: sim_amp.hpp:15
double mean
Definition: sim_wgn.hpp:27
Definition: _sci_assert.cpp:35
real value WGN generator source Core function: SIM::wgn.generate()
Definition: sim_wgn.hpp:22
double sigma
Definition: sim_wgn.hpp:26
~wgn()
Definition: sim_wgn.hpp:36