[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: averaging/smoothing data

From: Przemek Klosowski
Subject: Re: averaging/smoothing data
Date: Wed, 13 Jul 2016 14:31:55 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1

On 07/13/2016 02:08 PM, Colin Macdonald wrote:
On 13/07/16 09:58, Przemek Klosowski wrote:
Often, I need to smooth/average a data vector. I usually do a running
average using filter(), e.g. for 5-value average:


Did you mean:

filter(ones(1,5)/5, eye(5,1), x)
Yes, of course; sorry for the slip-up.

Thanks for pointing out the filters in the signal package. I am still surprised that there's no built-in core function, although I understand how it'd be difficult to come up with an universally pleasing one.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]