encode_1bit_base

baseband.base.encoding.encode_1bit_base(values)[source] [edit on github]

Generic encoder for data stored using one bit.

This returns an unsigned integer array containing encoded sample values that are either 0 (negative value) or 1 (positive value).

This does not pack the samples into bytes.