Creates a sequence of zeros and ones as defined in parameter pattern
.
pypho_bits.__init__(glova, nob, pattern)
Parameter | Type | Description |
---|---|---|
glova |
instance | Global parameters |
nob |
integer | Numbers of bits Default value is glova.nos |
pattern |
string | Defines the bitpattern'ones' : a sequence of ones'singlepulse' : a single one in the middle surrounded by zeros'random' : a random sequence of ones and zeros whith the same numbers of ones and zeros'debruijn' : De Bruijn sequence |
Output | Type | Description |
---|---|---|
User defined variable | pypho_bits.pypho_bits |
pypho_bits.__call__(nob (optional), pattern (optional))
Parameter | Type | Description |
---|---|---|
Optional paramter | As defined above |
Output | Type | Description |
---|---|---|
User defined variable | numpy.ndarray | Returns an array with zeros and ones as specified by pattern |