https://learninghub.kx.com/forums/topic/convergence-using-binary
Hi,
Hope this will be clear enough; I am trying to pass 2 parameters (x;y) to a function, for convergence:
- "x" being an initial table, which the convergence function will gradually modify until no change, using...
- "y", a list, which current value allows defining current conditions within the convergence function.
The following pseudo code is what I am looking for:
Step 1
f:{[x;y]
cond based on 1st item of y;
x: , until x is stable;
}/[initial table]/[first in list]
Step 2 & following: using table output from previous convergence, together with next element in list:
f:{[x;y]
cond based on n’th item of y;
x: , until x is stable
}/[output table from previous step]/[next in list]
… obviously with the bizarre “/[table]/[list]” interpreted as over . I think it is possible to achieve this through encapsulation and/or .z.s, but my attempts have failed. Any help would be appreciated.
Thx
JP