Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

SPUC::Gold Class Reference

Gold Sequences. More...

#include <sequence.h>

Collaboration diagram for SPUC::Gold:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Gold (int degree)
 Class constructor.
 Gold (const bvec &mseq1_connections, const bvec &mseq2_connections)
 Input connect_polynomials=1+g1*D+g2*D^2+...+gr*D^r in bvec format [g0,g1,...,gr].
 Gold (const ivec &mseq1_connections, const ivec &mseq2_connections)
 Input connect_polynomials=1+g1*D+g2*D^2+...+gr*D^r in octal format.
void set_state (const bvec &state1, const bvec &state2)
 Set state (contents in the shift registers) in bvec format.
void set_state (const ivec &state1, const ivec &state2)
 Set state (contents in the shift registers) in octal format.
bin shift (void)
 Shift one step and output binary symbol.
bvec shift (int no_shifts)
 Shift no_shifts steps and output bvec.
int get_sequence_length (void)
 Returns the length (period) of a Gold-sequence.
bmat get_family (void)
 Returns the code family.

Detailed Description

Gold Sequences.


Constructor & Destructor Documentation

Gold::Gold int  degree  ) 
 

Class constructor.

Automatic selection of preferred pair of connections. Just give the degree (N=2^degree-1). degree=5,7,8,9 available. Only one pair is available for each degree.

Gold::Gold const bvec &  mseq1_connections,
const bvec &  mseq2_connections
 

Input connect_polynomials=1+g1*D+g2*D^2+...+gr*D^r in bvec format [g0,g1,...,gr].

Gold::Gold const ivec &  mseq1_connections,
const ivec &  mseq2_connections
 

Input connect_polynomials=1+g1*D+g2*D^2+...+gr*D^r in octal format.


Member Function Documentation

bmat Gold::get_family void   ) 
 

Returns the code family.

The Gold code family is defined by the two m-sequences (mseq1 and mseq2 ) and the sum of mseq1 and all time shifts of mseq2. The return matric thus contain N + 2 rows and N columns, where N is the length of the m-sequences.

int SPUC::Gold::get_sequence_length void   )  [inline]
 

Returns the length (period) of a Gold-sequence.

void Gold::set_state const ivec &  state1,
const ivec &  state2
 

Set state (contents in the shift registers) in octal format.

void Gold::set_state const bvec &  state1,
const bvec &  state2
 

Set state (contents in the shift registers) in bvec format.

bvec Gold::shift int  no_shifts  ) 
 

Shift no_shifts steps and output bvec.

bin SPUC::Gold::shift void   )  [inline]
 

Shift one step and output binary symbol.

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Fri Sep 16 11:08:07 2005 for spuc by  doxygen 1.4.4