qampy.core.utils#

Various convenient utility functions.

Functions

bin2gray(value)

Convert a binary value to an gray coded value see _[1].

bool2bin(x)

Convert an array of boolean values into a binary number.

convert_iqtosinglebitstream(idat, qdat, nbits)

Interleave a two bitstreams into a single bitstream with nbits per symbol.

factorial(n)

The factorial of n, i.e. n!.

find_offset(sequence, data)

Find index where binary sequence occurs fist in the binary data array

lfsr_ext(seed, taps, nbits)

A Fibonacci or external XOR linear feedback shift register.

lfsr_int(seed, mask)

A linear feedback shift register, using Galois or internal XOR implementation.

linspacestep(start, step, N)

Create an array of given length for a given start and step value.

rolling_window(data, size[, wrap])

Reshapes a 1D array into a 2D array with overlapping frames.