[SciPy-User] Boxcar smoothing of 1D data array...?
Tue Jun 15 19:26:35 CDT 2010
Alternatively you could just use scipy.convolve with a tophat kernel ie (for a filter of length N & signal y):
see the docs for scipy.convolve for more info (you might want to specify how it handles the ends, for example)
From: Benjamin Root <email@example.com>
To: SciPy Users List <firstname.lastname@example.org>
Sent: Wed, 16 June, 2010 3:46:37 AM
Subject: Re: [SciPy-User] Boxcar smoothing of 1D data array...?
You can find various windowing functions like boxcar, hamming and hanning in scipy.signals module.
On Sat, Jun 12, 2010 at 10:28 AM, <email@example.com> wrote:
>>This seems like it should be a simple task, but I couldn't seem to find
>>anything in the docs about it - or rather, what I found seems to be from
>>the Numeric/Numarray days and not valid anymore.
>>As the subject line suggests, I have a 1D array that I want to
>>smooth/convolve with a Boxcar kernel of a certain width. In IDL there's
>>simply a function to do this, and there might be something people have
>>hacked together out there to do it too - but isn't there a simple way to
>>do it using built-in NumPy and SciPy tools?
>>SciPy-User mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SciPy-User