itpp_sci  1.0.0
it++ based simulation framework for scicoslab, scilab and scipy
sim_vco.hpp
1 /*xxx
2 * \brief vco - VCO is variable controlled oscillator a version of NCO with floating point accumulator ph=(-1.0..1.0)
3 * \author maki
4 */
5 
6 #ifndef SIM_VCO_HPP
7 #define SIM_VCO_HPP
8 
9 #include <itpp/itbase.h>
10 
11 using namespace itpp;
12 using namespace std;
13 
14 namespace SIM
15 {
16 
27 class vco
28 {
29  vec y0; // [cy,ph]
30  double ph;
31 
32 public:
33 
34  vco()
35  {
36  y0.set_length(2);
37  y0(0) = 0.0;
38  y0(1) = 0.0;
39  ph = 0.0;
40  };
41 
42  ~vco()
43  {
44  };
45 
49  void set_acc(double a);
50 
54  void set_output(const vec &yout);
55 
57  double get_acc();
58 
60  vec get_output(void);
61 
67  mat process(const bvec &ce, const vec &x);
68 };
69 
70 } // namespace SIM
71 #endif //SIM_VCO_HPP
72 
SIM layer implements low level simulation models with itpp base classes as operational types...
Definition: sim_amp.hpp:15
vco()
Definition: sim_vco.hpp:34
~vco()
Definition: sim_vco.hpp:42
Definition: _sci_assert.cpp:35
floating point point NCO - numerically controlled oscillator Core function: SIM::vco.process()
Definition: sim_vco.hpp:27