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

PAM demodulator
Core function: SIM::pam_mod.process()
. More...

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

Public Member Functions

 pam_dem ()
 
 ~pam_dem ()
 
void set_size (int m)
 
void set_scale (double s)
 
void set_output (int yout)
 
int get_size ()
 
double get_scale ()
 
int get_output ()
 
ivec process (const bvec &ce, const vec &x)
 

Detailed Description

PAM demodulator
Core function: SIM::pam_mod.process()
.

Constructor & Destructor Documentation

SIM::pam_dem::pam_dem ( )
inline
SIM::pam_dem::~pam_dem ( )
inline

Member Function Documentation

int SIM::pam_dem::get_output ( void  )

get output

Returns
- [double] y0
double SIM::pam_dem::get_scale ( )

get scale

Returns
- scale factor
int SIM::pam_dem::get_size ( void  )

get M - constellation size

Returns
- constellation size
ivec SIM::pam_dem::process ( const bvec &  ce,
const vec &  x 
)

for active clock ticks ce[i] and for given PAM symbol x[i] return symbol code y[i]

Parameters
ce- bvec - clock_enable vector
x- vec - symbol vector
Returns
y - ivec - symbol code ;
void SIM::pam_dem::set_output ( int  yout)

set output value y0

Parameters
[in]yout=> y0
void SIM::pam_dem::set_scale ( double  s)

set scale - default scaling is set by set_size() for [-1..+1] range

Parameters
[in]s- scale
void SIM::pam_dem::set_size ( int  m)

set constellation size M=2,4,8,16,...

Parameters
[in]m- constellation size

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