(%+./) 1 2 3 1 2 3 (%+./) 1 2 3*1000 1 2 3 (%+./) 1 2 3*0.1 1 2 3
Does the above "filter" solve the big and fractional weights issue? I believe there is no problem with the sequences of equal probabilities [sic] problem? On Fri, May 27, 2011 at 5:21 PM, Dan Bron <[email protected]> wrote: > > Brian wrote: >> The dyadic only form is as follows. Notice there is no sort or I. . >> 2((([?@#+/@]){(;@((#~)</.]# ;@(i.@#)))@])) 5 3 4 2 > > That's an interesting approach, and notationally correct (i.e. in the > abstract, it solves the problem). But in practical terms it has certain > limitations. The interface only provides for integral arguments, and > performance-wise it wouldn't scale easily with their magnitude. For > example, 1000 2000 3000 would take much longer than 1 2 3, and 0.1 0.2 0.3 > wouldn't work at all. > > (And I have a suspicion it might have issues with sequences of equal > probabilities, e.g. 1 3 3 3 4 5 6, but I haven't tested that). > > -Dan > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
