def generateSequences(nPatterns=<NUM_LIT:10>, patternLen=<NUM_LIT>, patternActivity=<NUM_LIT:50>,<EOL>hubs=[<NUM_LIT:2>,<NUM_LIT:6>],  seqLength=[<NUM_LIT:5>,<NUM_LIT:6>,<NUM_LIT:7>],<EOL>nSimpleSequences=<NUM_LIT:50>,  nHubSequences=<NUM_LIT:50>):
<EOL>patterns = generateCoincMatrix(nCoinc=nPatterns, length=patternLen,<EOL>activity=patternActivity)<EOL>seqList =  generateSimpleSequences(nCoinc=nPatterns, seqLength=seqLength,<EOL>nSeq=nSimpleSequences) +generateHubSequences(nCoinc=nPatterns, hubs=hubs, seqLength=seqLength,<EOL>nSeq=nHubSequences)<EOL>return (seqList, patterns)<EOL>
Generate a set of simple and hub sequences. A simple sequence contains
a randomly chosen set of elements from 0 to 'nCoinc-1'. A hub sequence
always contains a hub element in the middle of it.

Parameters:
-----------------------------------------------
nPatterns:        the number of patterns to use in the sequences.
patternLen:       The number of elements in each pattern
patternActivity:  The number of elements that should be active in
                      each pattern
hubs:             which of the elements will be used as hubs.
seqLength:        a list of possible sequence lengths. The length of each
                      sequence will be randomly chosen from here.
nSimpleSequences: The number of simple sequences to generate
nHubSequences:    The number of hub sequences to generate

retval:           (seqList, patterns)
                  seqList: a list of sequences. Each sequence is itself a list
                                containing the input pattern indices for that sequence.
                  patterns: the input patterns used in the seqList.