API: Supporting Functions ======================== Supporting Functions for Linear Feedback Shift Register get_fpolyList(m=None): Get the list of primitive polynomials as feedback polynomials for m-bit LFSR. Only half list of primary primitive polynomials are retuned, not the full list (half list), since for each primary primitive polynomial an image polymial can be computed using 'get_Ifpoly' method Parameters: m: 1 1, 0, 01, 11, 10, 110, 00, 010 #patterns = 8 Parameters: seq: as string of sequence, could be binary or any other Returns: lc: number of different patterns in LZ dictionary lempel_ziv_patterns(seq) Lempel-Ziv patterns. It is defined as a set of different patterns exists in a given sequence. As an example: s = '1001111011000010' patterns ==> 1, 0, 01, 11, 10, 110, 00, 010 Parameters: seq: as string of sequence, could be binary or any other Returns: dictionary of all the LZ patterns in given sequence