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

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

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

Public Member Functions

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

Detailed Description

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

Constructor & Destructor Documentation

SIM::pam_mod::pam_mod ( )
inline
SIM::pam_mod::~pam_mod ( )
inline

Member Function Documentation

double SIM::pam_mod::get_output ( void  )

get output

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

get scale

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

get M - constellation size

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

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

Parameters
ce- bvec - clock_enable vector
x- ivec - symbol code vector
Returns
y - vec - symbol vector normalized [-1..+1];
void SIM::pam_mod::set_output ( double  yout)

set output value y0

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

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

Parameters
[in]s- scale
void SIM::pam_mod::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: