Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
src= source ie close, perid 预定义变量
src
per
a = 0. a := per*src+(1-per)*nz(a[1],src)
请试试这个:
a = 0; a = per * src + (1 - per) * nz(ref(a,-1),src);
如果您需要src + (1 - per)在此之前计算,请记住括号per * src
src + (1 - per)
per * src