comnum.ber#
- comnum.ber(rx_bits, tx_bits)#
Bit error rate of two bit sequences of the same length.
- Parameters:
rx_bits (array_like) – the decided bits.
tx_bits (array_like) – the transmitted bits.
- Returns:
the fraction of different bits.
- Return type:
- Raises:
ValueError – for sequences of different lengths.
Examples
>>> import comnum >>> comnum.ber([0, 1, 1, 0], [0, 1, 0, 0]) 0.25