def getSimplePatterns(numOnes, numPatterns, patternOverlap=<NUM_LIT:0>):
assert (patternOverlap < numOnes)<EOL>numNewBitsInEachPattern = numOnes - patternOverlap<EOL>numCols = numNewBitsInEachPattern * numPatterns + patternOverlap<EOL>p = []<EOL>for i in range(numPatterns):<EOL><INDENT>x = numpy.zeros(numCols, dtype='<STR_LIT>')<EOL>startBit = i*numNewBitsInEachPattern<EOL>nextStartBit = startBit + numOnes<EOL>x[startBit:nextStartBit] = <NUM_LIT:1><EOL>p.append(x)<EOL><DEDENT>return p<EOL>
Very simple patterns. Each pattern has numOnes consecutive
    bits on. The amount of overlap between consecutive patterns is
    configurable, via the patternOverlap parameter.

    Parameters:
    -----------------------------------------------------------------------
    numOnes:        Number of bits ON in each pattern
    numPatterns:    Number of unique patterns to generate
    patternOverlap: Number of bits of overlap between each successive pattern
    retval:         patterns