Conceptually speaking, the sentence which introduces the expression used to define rlist should be enough. It says:
"More generally, the component permutation can be randomised as in the following tacit verb train :" That said, educational contexts do benefit from a certain amount of repetition. J documentation has traditionally handled this by expecting the reader to go over it several times, and by expecting the reader to both try out expressions and spend some time thinking about what they do (what the data looks like, for example). But there's also something to be said for approaching an issue from additional perspectives. If you can come up with another sentence here which adds to that essay, that might be a good thing? Thanks, -- Raul On Mon, Jul 23, 2018 at 9:59 AM Devon McCormick <[email protected]> wrote: > > Yes - that's it. I was misled by the "Tompkins-Paige ordering" referred to > in the essay and I didn't notice the "?" in the definition. I was thinking > this was an unambiguous ordering of the permutation vectors. > Should I change the essay to use "?." or include a note about why the > result someone sees from running this code may not match what is presented? > > On Sun, Jul 22, 2018 at 6:01 PM Brian Schott <[email protected]> wrote: > > > Devon, > > rlist uses ? which produces different random values. > > I think ?. may produce identical random values in different Js. > > > > On Sun, Jul 22, 2018 at 5:21 PM, Devon McCormick <[email protected]> > > wrote: > > > > > rlist=: TPlist { ?@! { Llist > > > TPlist=: 3 : 0 > > > if.y>1 do. > > > r=: ,/(i.y)|."1 every<(TPlist<:y),.<:y > > > else. r=: 1 $0 end. > > > ) > > > Llist=: i.@! A. i. > > > > > > Where "every" is "&>". > > > > > > > > > > > -- > > (B=) <-----my sig > > Brian Schott > > ---------------------------------------------------------------------- > > For information about J forums see http://www.jsoftware.com/forums.htm > > > > -- > > Devon McCormick, CFA > > Quantitative Consultant > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
