[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Weighted Moving Average
From: |
Luca Delucchi |
Subject: |
Weighted Moving Average |
Date: |
Fri, 10 Aug 2007 09:19:42 +0200 |
Hi, I can do a function on Weighted Moving Average where the value are
take in automatic mode? this my idea
#y=[y1,y2,y3,y4,y5]
function wma(y)
(y1+2*y2+y3)/4
(y2+2*y3+y4)/4
etc
etc
end function
I could not repeat the formula (y1+2*y2+y3)/4 (because if the long of
vector is different i must change the function) but have only one
formula that use the formula for all values of vector
I hope I've given a clear explanation
Luca
- Weighted Moving Average,
Luca Delucchi <=