itpp_sci  1.0.0
it++ based simulation framework for scicoslab, scilab and scipy
sim_rms.hpp
1 /*xxx
2 * \brief - SIM::rms - SIM layer implementation of RMS measuring block
3 * \author maki
4 */
5 
6 
7 
8 #ifndef SIM_RMS_HPP
9 #define SIM_RMS_HPP
10 
11 #include <itpp/itbase.h>
12 
13 #include "sim_fir.hpp"
14 
15 using namespace itpp;
16 using namespace std;
17 
18 namespace SIM
19 {
20 
29 class rms
30 {
31 private:
32  double y0;
33  int N;
34  SIM::fir fir_mav;
35 
36 public:
37  rms()
38  {
39  y0 = 0.0;
40  };
41 
42  ~rms()
43  {
44  };
45 
49  void set_size(int n);
50 
54  void set_output(double yout);
55 
59  int get_size(void);
60 
64  double get_output(void);
65 
71  vec process(const bvec &ce, const vec &x);
72 
73 };
74 
75 
76 }
77 #endif //SIM_rms
RMS calculator for real-value signals Core function: SIM::rms.process() .
Definition: sim_rms.hpp:29
rms()
Definition: sim_rms.hpp:37
FIR filter Core function: SIM::fir.process() .
Definition: sim_fir.hpp:28
SIM layer implements low level simulation models with itpp base classes as operational types...
Definition: sim_amp.hpp:15
Definition: _sci_assert.cpp:35
~rms()
Definition: sim_rms.hpp:42