34 #include <itpp/itexports.h> 59 LFSR(
const bvec &connections);
61 LFSR(
const ivec &connections);
63 void set_connections(
const bvec &connections);
65 void set_connections(
const ivec &connections);
67 void set_state(
const bvec &state);
69 void set_state(
const ivec &state);
73 bvec shift(
int no_shifts);
79 bvec memory, Connections;
98 Gold(
const bvec &mseq1_connections,
const bvec &mseq2_connections);
100 Gold(
const ivec &mseq1_connections,
const ivec &mseq2_connections);
102 void set_state(
const bvec &state1,
const bvec &state2);
104 void set_state(
const ivec &state1,
const ivec &state2);
108 bvec shift(
int no_shifts);
110 int get_sequence_length(
void);
118 bmat get_family(
void);
125 inline bin LFSR::shift(
void) {
bin temp = memory * Connections;memory.shift_right(temp);
return temp;}
146 #endif // #ifndef SEQUENCE_H bvec get_state(void)
Returns the state of the shift register.
bin shift(void)
Shift one step and output binary symbol.
Matrix Class Definitions.
bin shift(void)
Shift one step and output binary symbol.
smat wcdma_spreading_codes(int SF)
Generates the OVSF (orthogonal variable spreading factor) spreading codes used in WCDMA...
Binary Linear Feedback Shift Register (LFSR)
Binary arithmetic (boolean) class.
int get_length(void)
Return length of shift register.
Templated Vector Class Definitions.
int get_sequence_length(void)
Returns the length (period) of a Gold-sequence.