[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Mean filter
From: |
Francesco Potorti` |
Subject: |
Re: Mean filter |
Date: |
Thu, 21 Jul 2005 13:31:13 +0200 |
>I'm looking for a *fast* implementation of a mean filter.
function m = meanfilter (x, ws)
l = length(x);
a = cumsum(prepad(x, l+1));
b = a(ws+1:l)-a(1:l-ws);
m = b/ws;
endfunction
--
Francesco Potortì (ricercatore) Voice: +39 050 315 3058 (op.2111)
ISTI - Area della ricerca CNR Fax: +39 050 313 8091
via G. Moruzzi 1, I-56124 Pisa Email: address@hidden
Web: http://fly.isti.cnr.it/ Key: fly.isti.cnr.it/public.key
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------