Sorry, I forgot to paste a usage example:
110 should be: ('m' ; 'A' ; 'maxLevel') =. y
A =: 4 4 $ 2 _1 0 0 _1 2 _1 0 0 _1 2 _1 0 0 _1 2
byLevel (1 1 1 1 ; A ; 10)
returns an nx4 table of weights.
On 10 September 2010 13:10, Raul Miller <[email protected]> wrote:
> On Fri, Sep 10, 2010 at 4:39 AM, Justin Paston-Cooper
> <[email protected]> wrote:
>>>> including example inputs & outputs
>> http://pastebin.com/vJQ13h0d
>>
>> I've pasted my code there.
>
> That's a fair bit of code, but like it should be readable.
>
> Do you have example usages also?
>
> (It's much easier to understand how code works when
> you have representative data.)
>
> --
> 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