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

complex gain block with offset
Core function SIM::amp_x.process()
More...

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

Public Member Functions

 amp_x ()
 
 ~amp_x ()
 
void set_gain (complexd g)
 
void set_offset (complexd o)
 
void set_output (complexd yout)
 
complexd get_gain (void)
 
complexd get_offset (void)
 
complexd get_output (void)
 
cvec process (const bvec &ce, const cvec &x)
 

Detailed Description

complex gain block with offset
Core function SIM::amp_x.process()

y = gain*x+offset
default gain = 1.0+j0.0
default offset = 0.0+j0.0

Constructor & Destructor Documentation

SIM::amp_x::amp_x ( )
inline
SIM::amp_x::~amp_x ( )
inline

Member Function Documentation

complexd SIM::amp_x::get_gain ( void  )

get gain

Returns
- [complex] gain
complexd SIM::amp_x::get_offset ( void  )

get offset value

Returns
- [complex] offset
complexd SIM::amp_x::get_output ( void  )

get output value y0

Returns
- [complex] y0
cvec SIM::amp_x::process ( const bvec &  ce,
const cvec &  x 
)

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

Parameters
[in]ce[bvec] clock_enable vector
[in]x[cvec] input vector
Returns
y [cvec] output vector y = gain*x + offset
void SIM::amp_x::set_gain ( complexd  g)

set gain

Parameters
[in]g- [complex] gain
void SIM::amp_x::set_offset ( complexd  o)

set offset

Parameters
[in]o- [complex] offset
void SIM::amp_x::set_output ( complexd  yout)

set output value y0

Parameters
[in]yout- [complex] => y0

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