def smooth_array(array, amount=<NUM_LIT:1>):
if amount==<NUM_LIT:0>: return array<EOL>new_array = _n.array(array)<EOL>for n in range(len(array)):<EOL><INDENT>new_array[n] = smooth(array, n, amount)<EOL><DEDENT>return new_array<EOL>
Returns the nearest-neighbor (+/- amount) smoothed array.
This does not modify the array or slice off the funny end points.