34 #include <itpp/itexports.h> 107 void spread(
const vec &symbols, vec &out);
109 vec
spread(
const vec &symbols) { vec out;
spread(symbols, out);
return out; }
113 void despread(
const vec &rec_signal, vec &out,
int timing);
118 { vec out; despread(rec_signal, out, timing);
return out; }
120 void set_code(
const vec &incode);
158 Spread_2d(
const vec &incodeI,
const vec &incodeQ);
160 void spread(
const cvec &symbols, cvec &out);
162 cvec
spread(
const cvec &symbols) { cvec out;
spread(symbols, out);
return out; }
166 void despread(
const cvec &rec_signal, cvec &out,
int timing);
171 { cvec out; despread(rec_signal, out, timing);
return out; }
173 void set_code(
const vec &incodeI,
const vec &incodeQ);
207 vec spread(
const vec &symbols);
209 vec despread(
const vec &receivedsignal,
int timing);
211 void set_codes(
const mat &incodes);
255 cvec spread(
const cvec &symbols);
257 cvec despread(
const cvec &receivedsignal,
int timing);
264 void set_codes(
const mat &incodesI,
const mat &incodesQ);
280 #endif // #ifndef SPREAD_H vec code
The spreading code.
Multicode_Spread_2d()
Constructor.
int N
The spreading factor.
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...
Multicode_Spread_1d mcspreadQ
Multicode spreading of complex symbols to complex output.
int get_period()
Get the period of the code (length of code vector).
Multicode spreading of float symbols.
int N
The spreading factor.
int get_period()
Get the period of the code (length of code vector).
Spreading of complex symbols to complex output.
int get_period()
Returns the spreading factor.
int L
The number of multi-codes.
Matrix Class Definitions.
mat codes
The spreading codes used size ( )
int get_nocodes()
Returns the number of multi-codes used.
cvec despread(const cvec &rec_signal, int timing)
Despreading of signal. timing is the start position of the first symbol, given in number of samples...
cvec spread(const cvec &symbols)
Spreading of signal.
Spreading of float symbols to float output.
int get_period()
Returns the spreading factor.
vec spread(const vec &symbols)
Spreading of signal.
Multicode_Spread_1d()
Constructor.
Templated Vector Class Definitions.