[SciPy-user] decimate

Bill Baxter wbaxter@gmail....
Sat Oct 25 15:27:13 CDT 2008

On Sun, Oct 26, 2008 at 5:21 AM, Sebastian Haase <haase@msg.ucsf.edu> wrote:
> On Sat, Oct 25, 2008 at 9:53 PM, Bill Baxter <wbaxter@gmail.com> wrote:
>> On Sun, Oct 26, 2008 at 4:42 AM, Travis E. Oliphant
>> <oliphant@enthought.com> wrote:
>>> John Hunter wrote:
>>>> One of the functions I used to use a lot in matlab was decimate, which
>>>> downsamples data after doing a low pass filter to prevent aliasing.
>>> You can use the function resample in scipy.signal.  It uses a Fourier
>>> method for the low-pass filter.
>>> resample(x, len(x)/q)
>>> should give a similar result as decimate(x, q)
>> Ooh, wiki fodder!
>> Pasted this tidbit here: http://www.scipy.org/NumPy_for_Matlab_Users
> Should it read   Sci.signal.resample   !?

Oops.  I guess so.  I missed the mention of the package there.


More information about the SciPy-user mailing list