Spreading of float symbols to float output. More...
#include <itpp/comm/spread.h>
Public Member Functions | |
Spread_1d () | |
Constructor. | |
Spread_1d (const vec &incode) | |
Constructor. | |
void | spread (const vec &symbols, vec &out) |
Spreading of signal return i out. | |
vec | spread (const vec &symbols) |
Spreading of signal. | |
void | despread (const vec &rec_signal, vec &out, int timing) |
Despreading of signal. timing is the start position of the first symbol, given in number of samples. | |
vec | despread (const vec &rec_signal, int timing) |
Despreading of signal. timing is the start position of the first symbol, given in number of samples. | |
void | set_code (const vec &incode) |
Set the spreading code used for spreading. | |
vec | get_code () |
Returns the spreading code used. | |
int | get_period () |
Get the period of the code (length of code vector). | |
Protected Attributes | |
vec | code |
The spreading code. | |
int | N |
The spreading factor. | |
Spreading of float symbols to float output.
Spreading block for generation of 1-dimensional DS-CDMA signals Useful in the simulation of DS-CDMA systems on chip level or upsampled chip level.
Obeserve that the spreading is normalized so that the energy per bit is preserved before and after spreading (that is each symbol is multiplied with 1/sqrt
(N)). Hence, for the multicode case the energy is normalized for one symbol (code) but the transmitted signal consist of a sum of several signals.
Four different classes exist:
For multicode transmission, that is each user uses several codes in parallel to transmit data, there exist
Example:
Generated on Sat May 25 2013 16:32:32 for IT++ by Doxygen 1.8.2