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

sample rate converter with sinc FIR filter - wrapper for a SIM::src
Core function: SCI::sci_src.proc() More...

Inheritance diagram for SCI::sci_src:
Inheritance graph
[legend]

Public Member Functions

 sci_src ()
 
 ~sci_src ()
 
sci_srccreate (int sci_type)
 
void destroy ()
 destroy SCI object More...
 
void set (int param, sci_var *p_v)
 
sci_varget (int param)
 
void exec (int command)
 
sci_varproc (sci_var *p_v_ce, sci_var *p_v_x)
 
- Public Member Functions inherited from SCI::sci_base
 sci_base ()
 constructor More...
 
virtual ~sci_base ()
 virtual destructor More...
 
sci_basecreate (int sci_type)
 creates SCI object and returns pointer to it More...
 
virtual sci_vargen (sci_var *p_v_ce)
 generate data using a SCI object More...
 
- Public Member Functions inherited from SIM::src
double re_samp (double tau)
 
void xcb (double x_new)
 
 src ()
 
 ~src ()
 
void set_size (int n)
 
void set_win_type (int w)
 
void set_output (double yout)
 
int get_size (void)
 
int get_win_type (void)
 
double get_output (void)
 
vec process (const bmat &ceio, const mat &xt)
 

Additional Inherited Members

- Public Attributes inherited from SIM::src
double y0
 registered filter output More...
 

Detailed Description

sample rate converter with sinc FIR filter - wrapper for a SIM::src
Core function: SCI::sci_src.proc()

Constructor & Destructor Documentation

SCI::sci_src::sci_src ( )
SCI::sci_src::~sci_src ( )

Member Function Documentation

sci_src* SCI::sci_src::create ( int  sci_type)
inline
void SCI::sci_src::destroy ( )
inlinevirtual

destroy SCI object

Reimplemented from SCI::sci_base.

void SCI::sci_src::exec ( int  command)
virtual

executes command in an object of a SRC

Supported commands:
none 
Parameters
[in]command- to be executed

Reimplemented from SCI::sci_base.

sci_var * SCI::sci_src::get ( int  param)
virtual

creates new sci_var and assigns its value to the requested parameter of SRC

Supported parameters:
SCI_TYPE,      sci_var [int] 
SCI_SIZE, sci_var [int]
SCI_WIN_TYPE, sci_var [int]
SCI_OUTPUT, sci_var [double]
Parameters
[in]param- parameter to get
Returns
- pointer to created sci_var

Reimplemented from SCI::sci_base.

sci_var * SCI::sci_src::proc ( sci_var p_v_ce,
sci_var p_v_x 
)
virtual

creates sci_var and assigns its value to the output of SIM::src::process()

Parameters
[in]p_v_ce- pointer to [cei|ceo] - sci_var [bmat]
[in]p_v_x- pointer to [x|t] - sci_var [mat]
Returns
- pointer to y - created sci_var [vec]

Reimplemented from SCI::sci_base.

void SCI::sci_src::set ( int  param,
sci_var p_v 
)
virtual

sets parameter of a SRC

Supported parameters:
SCI_SIZE,      sci_var [int]
SCI_WIN_TYPE, sci_var [int]
SCI_OUTPUT, sci_var [double]
Parameters
[in]param- parameter to set
[in]p_v- pointer to sci_var object with value of the parameter

Reimplemented from SCI::sci_base.


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