Go to the documentation of this file.
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
smat wcdma_spreading_codes(int SF)
Generates the OVSF (orthogonal variable spreading factor) spreading codes used in WCDMA.
bvec get_state(void)
Returns the state of the shift register.
bin shift(void)
Shift one step and output binary symbol.
Binary arithmetic (boolean) class.
Matrix Class Definitions.
int get_sequence_length(void)
Returns the length (period) of a Gold-sequence.
int get_length(void)
Return length of shift register.
bin shift(void)
Shift one step and output binary symbol.
Templated Vector Class Definitions.
Binary Linear Feedback Shift Register (LFSR)
Generated on Sat Jun 22 2019 19:10:12 for IT++ by Doxygen 1.8.17