RMS calculator for complex signals
Core function: SIM::rms_x.process()
.
More...
RMS calculator for complex signals
Core function: SIM::rms_x.process()
.
y=sqrt(MAV<real(x*conj(x))>) where MAV is a moving avarage of N samples implemented as a FIR filter mav< s > = (s[i]+s[i-1]+...s[i-N-1])/N
| double SIM::rms_x::get_output |
( |
void |
| ) |
|
get initial/idle output symbol
- Returns
- - [int] y0
| int SIM::rms_x::get_size |
( |
void |
| ) |
|
get size of a MAV filter
- Returns
- - [int] size of MAV
| vec SIM::rms_x::process |
( |
const bvec & |
ce, |
|
|
const cvec & |
x |
|
) |
| |
for active clock ticks ce[i] calculate RMS using moving avarage of squared input module
- Parameters
-
| ce | - [bvec] - clock enable vector - sizeof(ce)=N |
| x | - [cvec] - input vector sizeof(x)=[N] |
- Returns
- y - [vec] - output vector - sizeof(y)=[N]
| void SIM::rms_x::set_output |
( |
double |
yout | ) |
|
sets initial/idle output symbol
- Parameters
-
| [in] | yout | - [int] y0 = yout |
| void SIM::rms_x::set_size |
( |
int |
n | ) |
|
set size of a MAV filter
- Parameters
-
The documentation for this class was generated from the following files:
- C:/jobs/vcc/itpp_sci/include/sim/sim_rms_x.hpp
- C:/jobs/vcc/itpp_sci/sim_lib/code/sim_rms_x.cpp