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);
125inline bin LFSR::shift(
void) {
bin temp = memory * Connections;memory.shift_right(temp);
return temp;}
int get_sequence_length(void)
Returns the length (period) of a Gold-sequence.
Gold(int degree)
Class constructor.
void set_state(const bvec &state1, const bvec &state2)
Set state (contents in the shift registers) in bvec format.
bin shift(void)
Shift one step and output binary symbol.
bmat get_family(void)
Returns the code family.
Binary Linear Feedback Shift Register (LFSR)
int get_length(void)
Return length of shift register.
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.
smat wcdma_spreading_codes(int SF)
Generates the OVSF (orthogonal variable spreading factor) spreading codes used in WCDMA.
Matrix Class Definitions.
Mat< bin > bmat
bin matrix
Templated Vector Class Definitions.