> You mean like J's /. adverb?

looks interesting... i can kind of see how this could do moving
averages but can't see how you could apply it to a table like:

----+-----
day | price
----+------
0   | 1.00
1   | 1.20
2   | 1.15
3   | 1.25
4   | 2.90
5   | 2.70
6   | 2.75


...but in the following table, the sums and tallies of diagonals
contribute to a 3 day moving average:

----+-----
day | price
----+------
0-6 | 1.00 1.20 1.15 1.25 2.90 2.70 2.75
0-6 | 1.00 1.20 1.15 1.25 2.90 2.70 2.75
0-6 | 1.00 1.20 1.15 1.25 2.90 2.70 2.75

am i on the right track?
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to