itpp_sci  1.0.0
it++ based simulation framework for scicoslab, scilab and scipy
Public Member Functions | List of all members
SIM::src_x Class Reference

complex sample rate converter with sinc reconstruction filter
Core function: SIM::src_x.process()
More...

Inheritance diagram for SIM::src_x:
Inheritance graph
[legend]

Public Member Functions

 src_x ()
 
 ~src_x ()
 
void set_size (int n)
 
void set_win_type (int w)
 
void set_output (complexd yout)
 
int get_size (void)
 
int get_win_type (void)
 
complexd get_output (void)
 
cvec process (const bmat &ceio, const cmat &xt)
 

Detailed Description

complex sample rate converter with sinc reconstruction filter
Core function: SIM::src_x.process()

Constructor & Destructor Documentation

SIM::src_x::src_x ( )
inline

default complex SRC uses two I,Q fir filters with 15 taps sinc kernels and hanning windows

SIM::src_x::~src_x ( )
inline

Member Function Documentation

complex< double > SIM::src_x::get_output ( void  )

get output

Returns
- [double] y0
int SIM::src_x::get_size ( void  )

get sinc kernel size

Returns
- [int] sinc fir kernel size
int SIM::src_x::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
cvec SIM::src_x::process ( const bmat &  ceio,
const cmat &  xt 
)

process input complex samples xt[0,i]=I+jQ for active input clock ticks ce[0,i]
for active output clock tick ce[1,i] reconstruct complex output y[i]=I+jQ for a given fractional time xt[1,i]

Parameters
ceio- [bmat] - input/output [cei|ceo] clock enable matrix
xt- [cmat] - input samples and fractional time xt=[x|t] matrix, time is real - common for both I,Q signals
Returns
y - [cvec] - complex output samples vector
void SIM::src_x::set_output ( complexd  yout)

set output value y0

Parameters
[in]yout- [complex] => y0
void SIM::src_x::set_size ( int  n)

set sinc kernel size

Parameters
[in]n- [int] kernel size
void SIM::src_x::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

The documentation for this class was generated from the following files: