help-octave
[Top][All Lists]
Advanced

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

Re: Weighted Moving Average


From: Luca Delucchi
Subject: Re: Weighted Moving Average
Date: Fri, 10 Aug 2007 14:18:24 +0200

2007/8/10, Søren Hauberg <address@hidden>:
> Can't you do this with a convolution? That is,
>
> function retval = wma(y)
>    w = [1, 2, 1]/4;
>    retval = conv(y, w);
> endfunction

You che explain the function?
I try this function and is good, but there are more values because it
done also only with the first value, the first and the second like so
in the last values. Is possibile done something to correct the
mistake?

the function done
y=[y1,y2,y3,y4,y5]
(0+0+y1)/4
(0+2*y1+y2)/4

>
> Søren

thank's
Luca



reply via email to

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