expyfun.binary_to_decimals#

expyfun.binary_to_decimals(binary, n_bits)[source]#

Convert a sequence of binary numbers to a sequence of decimal numbers.

Parameters:
binaryarray-like

Array of integers to convert. Must all be 0 or 1.

n_bitsarray-like

Array of the number of bits used to represent each decimal number.

Returns:
decimalsarray-like

Array of integers.