Dear Raul, Thank you for fast response, but I would to use to a test net with 1000 points. I think that would be to it better a modified "tsum_des" verb from Jwiki/Essays/Tree Sum.
Regards, Istvan 2008/5/25 Raul Miller <[EMAIL PROTECTED]>: > On 5/25/08, Istvan Kadar <[EMAIL PROTECTED]> wrote: > > My problem is the following. > > > > In the tree root is a altitude value and in the nodes are > > altitude differences of the adjacent nodes in the graph. > > Let the tree sum from root to nodes (from left to right) > > to obtain in all nodes altitudes. > > > > My question: how need to modify in the tsum_des verb > > (Jwiki/Essays/Tree Sum) for this end? > > p=: 0 0 0 1 2 2 3 3 4 4 4 4 5 5 6 > v=: 182 _127 _61 _15 _69 _71 _29 _23 _52 _38 _46 _34 _37 _32 0 > > Using definitions from that essay: > v (|:@[EMAIL PROTECTED]@[EMAIL PROTECTED] +/ .* [) p > 182 55 121 40 52 50 11 17 0 14 6 18 13 18 11 > > Was that what you were looking for? > > Thanks, > > -- > Raul > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
