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

COFDM modulator
Core immediate functions SIM::cofdm_mod.set_carriers(), SIM::cofdm_mod.get_symbol()
Core clocked functions SIM::cofdm_mod.process()
. More...

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

Public Member Functions

 cofdm_mod ()
 
 ~cofdm_mod ()
 
void set_NFFT (int n)
 
void set_CP (int cp)
 
void set_scale (double s)
 
void set_carriers (cvec x)
 
int get_NFFT ()
 
int get_CP ()
 
double get_scale ()
 
cvec get_carriers ()
 
cvec get_symbol ()
 
cmat process (const bvec &ce, const cmat &x)
 

Public Attributes

cvec y0
 y0 - complex symbols - modulated carriers y0=[CP|INV_FFT(carriers)] More...
 

Detailed Description

COFDM modulator
Core immediate functions SIM::cofdm_mod.set_carriers(), SIM::cofdm_mod.get_symbol()
Core clocked functions SIM::cofdm_mod.process()
.

Constructor & Destructor Documentation

SIM::cofdm_mod::cofdm_mod ( )
inline
SIM::cofdm_mod::~cofdm_mod ( )
inline

Member Function Documentation

cvec SIM::cofdm_mod::get_carriers ( )

get carriers - modulator input QAM|BPSK [I+jQ]

Returns
- [cvec] complex carriers
int SIM::cofdm_mod::get_CP ( )

get CP size

Returns
- [int] CP size
int SIM::cofdm_mod::get_NFFT ( )

get FFT size

Returns
- [int] FFT size
double SIM::cofdm_mod::get_scale ( )

get scaling factor

Returns
- [double] scaling factor
cvec SIM::cofdm_mod::get_symbol ( )

get symbol - by setting new modulator output - complex time domain symbol y0=[CP|INV_FFT(carriers)]

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

for active clock ticks ce[i] and for QAM,BPSK carriers x[i,:] return time domain cofdm symbol y[i,:].

Parameters
ce- bvec[:] - clock_enable vector,
x- cmat[:,NFFT] - QAM, BPSK carriers matrix,
Returns
y - cmat[:,NFFT+CP] - cofdm symbols matrix.
void SIM::cofdm_mod::set_carriers ( cvec  x)

set carriers - modulator input QAM|BPSK [I+jQ]

Parameters
[in]x- [cvec] complex carriers
void SIM::cofdm_mod::set_CP ( int  cp)

set size of CP - Circular Prefix

Parameters
[in]cp- CP size
void SIM::cofdm_mod::set_NFFT ( int  n)

set FFT size (N=2^k)

Parameters
[in]n- FFT size
void SIM::cofdm_mod::set_scale ( double  s)

set scale - default scaling is set by set_NFFT() and set_CP()

Parameters
[in]s- scale

Member Data Documentation

cvec SIM::cofdm_mod::y0

y0 - complex symbols - modulated carriers y0=[CP|INV_FFT(carriers)]


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