Skip to main content

Module gold_codes

Module gold_codes 

Source
Expand description

Gold codes.

A Gold family for register length n consists of the two m-sequences of a preferred pair together with the 2^n - 1 sequences obtained by adding the second sequence at every cyclic shift to the first. Their periodic cross-correlations take only three values, -1, -t(n) and t(n) - 2, where t(n) = 1 + 2^((n+1)/2) for odd n and 1 + 2^((n+2)/2) for n ≡ 2 (mod 4).

See the book entry LFSRs and Gold codes.

Functions§

gold_codes
Generates the Gold family for register length n (3..=20, not a multiple of 4).
gold_correlation_bound
The magnitude bound t(n) on the Gold-code correlation values, or None if no Gold family exists for n (that is, when n is a multiple of 4).