Next  |  Prev  |  Top  |  REALSIMPLE Top

Golay Code Theory

The length $L$ bilevel sequences $a(n)$ and $b(n)$ are Golay if and only if the following condition holds, where $\star$ is the autocorrelation operator [1]:
\begin{displaymath}
a(n) \star a(n) + b(n) \star b(n) = 2L \delta (n)
\end{displaymath} (2)

$\delta (n)$ is the Kronecker delta function. Recall that (2) can also be written using $\ast$, the convolution operator.


\begin{displaymath}
a(-n) \ast a(n) + b(-n) \ast b(n) = 2L \delta (n)
\end{displaymath} (3)

Given that $a_L(n)$ and $b_L(n)$ are Golay, it turns out that $a_{2L}(n) =
[ \begin{array}{cc}a_L(n) &b_L(n) \end{array} ]$ and $b_{2L}(n) = [
\begin{array}{cc} a_L(n) & -b_L(n) \end{array} ]$ are also Golay. This means that Golay sequences can be constructed recursively given Golay seed sequences such as $a_2(n) = [ \begin{array}{cc} 1&1 \end{array} ]$ and $b_2(n) = [ \begin{array}{cc} 1&-1 \end{array} ]$. See the MATLAB/Octave source code generate_golay.m for details. Notice also that the resulting bilevel sequences consist of only $1$'s and $-1$'s. This means that the signal contains the maximum possible power level given that $\vert s(n)\vert \leq 1 \forall n$. This property is helpful in combatting measurement noise.

Let $r_a(n) = a(n) \ast h(n)$ be the response due to the Golay code input $a(n)$, and let $r_b(n) = b(n) \ast h(n)$ be the response due to the Golay code input $b(n)$. Due to (2), the impulse response $h(n)$ may be determined as follows:


\begin{displaymath}
h(n) = \frac{1}{2L}( a(n) \star r_a(n) + b(n) \star r_b(n) )
\end{displaymath} (4)

See golay_response.m for more details.


Next  |  Prev  |  Top  |  REALSIMPLE Top

Download imp_meas.pdf

``Transfer Function Measurement Toolbox'', by Edgar J. Berdahl and Julius O. Smith III,
REALSIMPLE Project — work supported by the Wallenberg Global Learning Network .
Released 2008-06-05 under the Creative Commons License (Attribution 2.5), by Edgar J. Berdahl and Julius O. Smith III
Center for Computer Research in Music and Acoustics (CCRMA),   Stanford University
CCRMA