sample rate converter with sinc reconstruction filter
Core function: SIM::src.process()
More...
sample rate converter with sinc reconstruction filter
Core function: SIM::src.process()
default SRC uses 15 taps sinc kernel with hanning window
| double SIM::src::get_output |
( |
void |
| ) |
|
get output
- Returns
- - [double] y0
| int SIM::src::get_size |
( |
void |
| ) |
|
get sinc kernel size
- Returns
- - [int] sinc fir kernel size
| int SIM::src::get_win_type |
( |
void |
| ) |
|
get sinc window type
- Returns
- - [int] sinc fir kernel window type WIN_HANNING=1, WIN_KAISER_BESSEL=2, WIN_FLAT_TOP=3
| vec SIM::src::process |
( |
const bmat & |
ceio, |
|
|
const mat & |
xt |
|
) |
| |
process input samples xt[0,i] for active input clock ticks ce[0,i]
for active output clock tick ce[1,i] reconstruct output y[i] for a given fractional time xt[1,i]
- Parameters
-
| ceio | - bmat - input/output [cei|ceo] clock enable matrix |
| xt | - mat - input sample and fractional time xt=[x|t] matrix |
- Returns
- y - vec - output sample vector
| double SIM::src::re_samp |
( |
double |
tau | ) |
|
reconstructed kernel response h=h_t(tau), tau - normalized time tau=dT/Ts
- Parameters
-
| [in] | tau | - [double] - tau - is a Ts fraction |
- Returns
- - [double] impulse response value
| void SIM::src::set_output |
( |
double |
yout | ) |
|
set output value y0
- Parameters
-
| void SIM::src::set_size |
( |
int |
n | ) |
|
set sinc kernel size
- Parameters
-
| void SIM::src::set_win_type |
( |
int |
w | ) |
|
set window type
- Parameters
-
| [in] | w | - [int] window type WIN_HANNING=1, WIN_KAISER_BESSEL=2, WIN_FLAT_TOP=3 |
| void SIM::src::xcb |
( |
double |
x_new | ) |
|
samples circular buffer
- Parameters
-
| [in] | x_new | - [double] new sample |
The documentation for this class was generated from the following files:
- C:/jobs/vcc/itpp_sci/include/sim/sim_src.hpp
- C:/jobs/vcc/itpp_sci/sim_lib/code/sim_src.cpp