deltakit.core.decoding_graphs.FixedWidthBitstring#
- class deltakit.core.decoding_graphs.FixedWidthBitstring(width: int, value: int = 0)#
Bases:
BitstringClass which represents a fixed precision bitstring.
Methods#
Get the number of 1s in this bitstring. |
|
Change the width of this bitstring internally. |
|
Create a bitstring from a list of bits. |
|
Create a bitstring from a collection of bytes. |
|
Create a bitstring from a list of non-zero indices. |
|
Create a list of indices of the non-zero elements in this bitstring |
|
Convert the bitstring into words of a given length. |