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

FIR filter
Core function: SIM::fir.process()
. More...

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

Public Member Functions

 fir ()
 
 ~fir ()
 
void set_state (const vec &v)
 
void set_output (double yout)
 
vec get_state (void)
 
double get_output (void)
 
vec process (const bvec &ce, const vec &x)
 

Public Attributes

double y0
 registered filter output, initialized to 0.0 by constructor More...
 

Detailed Description

FIR filter
Core function: SIM::fir.process()
.

derived from SPUC::fir<double> with added ce interface
Inherited methods:
void set_taps(vec)
vec get_taps(void)
int get_size()

Constructor & Destructor Documentation

SIM::fir::fir ( )
inline
SIM::fir::~fir ( )
inline

Member Function Documentation

double SIM::fir::get_output ( void  )

get output

Returns
- [double] y0
vec SIM::fir::get_state ( void  )

get internal state vector

Returns
- [vec] internal state vector
vec SIM::fir::process ( const bvec &  ce,
const vec &  x 
)

process input samples - [x] for active clock ticks [ce]

Parameters
ce- bvec - clock enable vector
x- vec - input sample vector
Returns
y - vec - output sample vector
void SIM::fir::set_output ( double  yout)

set output value y0

Parameters
[in]yout- [double] => y0
void SIM::fir::set_state ( const vec &  v)

set internal state vector

Parameters
[in]v- [vec] state vector to set

Member Data Documentation

double SIM::fir::y0

registered filter output, initialized to 0.0 by constructor


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