pattern_alignment

decida.pattern_alignment.pattern_alignment(patterns)

synopsis:

Align several bit patterns for maximum correlation.

arguments:

patterns (list)

list of bit patterns (strings of “1”, “0”)

results:

  • returns list of lists of aligned patterns and pair bit-errors

example:

>>> from decida.pattern_alignment import pattern_alignment
>>> pats = ["1000001000010101110110101110",
    "1000001000010101110110101110010111",
    "01000010101110110101110010111000111000"
>>> ]
for ab in pattern_alignment(pats) :
    print ab[1], ab[0]