def downsample(vector, factor):
if (len(vector) % factor):<EOL><INDENT>print("<STR_LIT>" % factor)<EOL>return <NUM_LIT:0><EOL><DEDENT>vector.shape = (len(vector) / factor, factor)<EOL>return numpy.mean(vector, axis=<NUM_LIT:1>)<EOL>
downsample(vector, factor):
    Downsample (by averaging) a vector by an integer factor.