The Exponential Moving Average function is defined as(cf.
http://www.fmlabs.com/reference/default.htm):
EMA(0)=y(0)
EMA(i)=(K*y(i))+(1-K)*EMA(i-1),where K=2/(n+1) and n=length(y)
A explict version is
EMA=:((2 % [:>: #) $: ])  : (4 :'(((x * [) +  (-.x) * ])/\.)&.|. y')
Can it be convert to a tacit train?

By the way,in the current j64-602a(and beta vesions),0x1=is
2.718281828,is it a bug?
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to