Skip to main content

Module barker_codes

Module barker_codes 

Source
Expand description

Barker codes: binary phase codes whose aperiodic autocorrelation sidelobes never exceed 1 in magnitude. They are used for frame synchronisation and radar pulse compression because the correlation peak (equal to the code length) stands out from the sidelobes by a factor of length. Barker codes exist only for lengths 2, 3, 4, 5, 7, 11 and 13.

See the book entry Pulse compression, Barker codes and pulse tracking.

Constants§

BARKER_LENGTHS
The lengths for which a Barker code exists.

Functions§

barker_autocorrelation
The aperiodic autocorrelation of a code at lags -(n-1)..=n-1 (the peak is at index n - 1).
barker_code
The Barker code of the given length as ±1 chips.