commpy.channels.bec

bec(input_bits, p_e)

Binary Erasure Channel.

Parameters:
  • input_bits (1D ndarray containing {0, 1}) – Input arrary of bits to the channel.
  • p_e (float in [0, 1]) – Erasure probability of the channel.
Returns:

output_bits – Output bits from the channel.

Return type:

1D ndarray containing {0, 1}