Re: [Jprogramming] Ragged Array Shapes are Trees

2014-09-08 Thread Devon McCormick
xpressing ideas about trees. We can make it > efficient "later" (Pepe's TCO utility is a start). > > -Dan > > > > ------ > For information about J forums see http://www.jsoftware.com/forums.htm > -- Devon McCormick, CFA -- For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] Ragged Array Shapes are Trees

2014-09-08 Thread Devon McCormick
At a minimum, I hope we can be a tad more elegant than this: http://www-cs.ccny.cuny.edu/~peter/dstest/h_bl_tree.c . On Mon, Sep 8, 2014 at 3:03 PM, Devon McCormick wrote: > Do you have a reference to a good example of this? Looking at the > "before" and "after"

Re: [Jprogramming] Ragged Array Shapes are Trees

2014-09-08 Thread Devon McCormick
t does not distinguish between right and left nodes as it is usually implemented. On Mon, Sep 8, 2014 at 3:03 PM, Devon McCormick wrote: > Do you have a reference to a good example of this? Looking at the > "before" and "after" pictures on the right here -

Re: [Jprogramming] Ragged Array Shapes are Trees

2014-09-08 Thread Devon McCormick
: > http://rosettacode.org/wiki/Pattern_matching#J ... It might be relevant > or > may not be. > > On Mon, Sep 8, 2014 at 3:45 PM, Devon McCormick > wrote: > > > A little research clarified what we see here: apparently it's part of the > > definition of a binary tree

Re: [Jprogramming] Ragged Array Shapes are Trees

2014-09-08 Thread Devon McCormick
> >│ ││ │ ││ │ ││ ││BBB│CCC│└───┴─┘│ > > > >│ ││ │ ││ │ ││ │└───┴───┘ │ > > > >│ ││ │ ││ │ │└───┴─┘│││ │ > > > >│ ││ │ │└──┴─┴───┘││ │ > > > >│ │└──┴──┴──┘│ │ > >

Re: [Jprogramming] Ragged Array Shapes are Trees

2014-09-09 Thread Devon McCormick
is that 'compression' could very easily > lead > > to an increase in representation size, although it is nice and uniform > for > > ragged arrays of uniform rank. > > > > 3 > > / > > | 3 > > | / > > D: 2 - 2 + > > | \ > > | 1 > > \ > > 2 > > > > Regardless of compression, I would be interested in prior work in > > representing shapes of ragged arrays as trees. > > > > Cheers, > > > > Mike > > -- > > For information about J forums see http://www.jsoftware.com/forums.htm > > -- > > For information about J forums see http://www.jsoftware.com/forums.htm > > > -- > For information about J forums see http://www.jsoftware.com/forums.htm > -- Devon McCormick, CFA -- For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] Ragged Array Shapes are Trees

2014-09-09 Thread Devon McCormick
leaves 1, 2. > > > > > > 3 > > > / > > > D: 2 - 2 - 1 > > > \ > > >2 > > > > > > We could resolving this ambiguity by listing the shapes of all the > items > > > explicitly. The problem here is that 'compression' could very easily > > lead > > > to an increase in representation size, although it is nice and uniform > > for > > > ragged arrays of uniform rank. > > > > > > 3 > > > / > > > | 3 > > > | / > > > D: 2 - 2 + > > > | \ > > > | 1 > > > \ > > > 2 > > > > > > Regardless of compression, I would be interested in prior work in > > > representing shapes of ragged arrays as trees. > > > > > > Cheers, > > > > > > Mike > > > -- > > > For information about J forums see http://www.jsoftware.com/forums.htm > > > > > > -- > > > For information about J forums see http://www.jsoftware.com/forums.htm > > -- > > For information about J forums see http://www.jsoftware.com/forums.htm > > -- > > For information about J forums see http://www.jsoftware.com/forums.htm > > > -- > For information about J forums see http://www.jsoftware.com/forums.htm > -- > For information about J forums see http://www.jsoftware.com/forums.htm > > -- > For information about J forums see http://www.jsoftware.com/forums.htm > -- > For information about J forums see http://www.jsoftware.com/forums.htm > -- Devon McCormick, CFA -- For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] OOJ and calling a verb from another locale

2014-09-15 Thread Devon McCormick
a value error for MyVerb. I asusme this is because myVerb > > was defined in a different locale. > > I then tried create__myObj 'MyVerb_z_ 1 2 3' > > Which also gives a value error. > > By the way, what I am trying to do is pass a callback to the constructor > > of MyClass, so I can execute an arb

Re: [Jprogramming] OOJ and calling a verb from another locale

2014-09-17 Thread Devon McCormick
As Dan says, the usual way J handles a group of variables is with an array. I'm still interested in seeing a realistic example of how OOP provides something useful for organizing code The toy examples usually trotted out - different geometric shapes or cars - do not seem convincing.

Re: [Jprogramming] zlib addon thanks

2014-09-23 Thread Devon McCormick
a performance is much better. > > > > > > Kudos to Bill and anyone else that worked on this addon. > > > > > > -- > > John D. Baker > > bakerj...@gmail.com > > -- > > For information about J forums see

Re: [Jprogramming] zlib addon thanks

2014-09-23 Thread Devon McCormick
b' NB. reload after first dl. > > > > > - Original Message - > From: Devon McCormick > To: J-programming forum > Cc: > Sent: Tuesday, September 23, 2014 1:33 PM > Subject: Re: [Jprogramming] zlib addon thanks > > How do I load this? > > On

Re: [Jprogramming] zlib addon thanks

2014-09-23 Thread Devon McCormick
manager... Perhaps you have a > custom profile that affects load? > > this is a j803 feature, btw. > > > - Original Message - > From: Devon McCormick > To: J-programming forum > Cc: > Sent: Tuesday, September 23, 2014 2:28 PM > Subject: Re: [Jprogramming] zlib addo

Re: [Jprogramming] zlib addon thanks

2014-09-23 Thread Devon McCormick
ht install them. Since I know J, I deduced from the list of allowable left arguments to "jpkg" that this (<'install') jpkg&.>0{"1 'shownotinstalled' jpkg'' works but it seems far from intuitive or simple. On Tue, Sep 23, 2014 at 10:07 PM,

Re: [Jprogramming] zlib addon thanks

2014-09-23 Thread Devon McCormick
gt; > > > Yes = I've used package manager to get all updates but I'm not at > 8.03. I > > > did have a custom profile but removed it. > > > > > > On Tue, Sep 23, 2014 at 2:40 PM, 'Pascal Jasmin' via Programming < > > > programm...@jso

Re: [Jprogramming] zlib addon thanks

2014-09-23 Thread Devon McCormick
23, 2014 at 11:09 PM, Devon McCormick wrote: > > 'install' jpkg 'all' > does not install the addons. > > On Tue, Sep 23, 2014 at 11:04 PM, bill lam wrote: > >> >> > 'install' jpkg 'all' >> >> This should work. But

Re: [Jprogramming] zlib addon thanks

2014-09-23 Thread Devon McCormick
rase I showed before. On Tue, Sep 23, 2014 at 11:11 PM, Devon McCormick wrote: > This is from my JQt session after installing J 8.03: > >'update' jpkg 'all' > > Updating server catalog... > > Local JAL information was last updated: 23 Sep 2014 22:33:04

Re: [Jprogramming] zlib addon thanks

2014-09-23 Thread Devon McCormick
lowing should work > > 'install' jpkg 'shownotinstalled' jpkg '' > > For more see the wiki page: > http://www.jsoftware.com/jwiki/JAL/Package%20Manager/jpkg > > > On Wed, Sep 24, 2014 at 2:47 PM, Devon McCormick > wrote: > > > OK - thanks, Pas

Re: [Jprogramming] zlib addon thanks

2014-09-24 Thread Devon McCormick
g --keyserver subkeys.pgp.net --recv-keys 4434BAB3 > > gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3 > > ------ > > For information about J forums see http://www.jsoftware.com/forums.htm > > > -- > For information about J forums see http://www.jsoftware.com/forums.htm > -- Devon McCormick, CFA -- For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] Beginner question

2014-09-25 Thread Devon McCormick
e that agrees more with the reference link on the main NuVoc > > page. > > > > > > http://www.jsoftware.com/jwiki/Vocabulary/bardot#dyadic > > > > > > > > > > -- > > (B=) > > -- > > For i

Re: [Jprogramming] Predicting the shape of the result

2014-09-25 Thread Devon McCormick
or the shape of the answer > ? > > as opposed to say 14 > > > > thanks again! > > -- > > For information about J forums see http://www.jsoftware.com/forums.htm > > > -------

Re: [Jprogramming] Repeated rolling dice

2014-09-25 Thread Devon McCormick
ive bias, so it may just be me, but > > is there a discussion of the quality of the RNG somewhere? > > > > Thanks, > > Johann > > -- > > For information about J forums see http://www.jsoftware.com/forums.htm > > > -- > For information about J forums see http://www.jsoftware.com/forums.htm > -- Devon McCormick, CFA -- For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] Beginner question

2014-09-25 Thread Devon McCormick
t please > not just "rotate". > > Henry Rich > > On 9/25/2014 2:19 PM, Raul Miller wrote: > >> I'll do that, then. >> >> Thanks, >> >> ----

Re: [Jprogramming] Beginner question

2014-09-26 Thread Devon McCormick
-- > > For information about J forums see http://www.jsoftware.com/forums.htm > > > ------ > For information about J forums see http://www.jsoftware.com/forums.htm > > -- > For information about J forums see http://www.jsoftware.com/forums.htm > -- > For information about J forums see http://www.jsoftware.com/forums.htm > -- Devon McCormick, CFA -- For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] Length errors when getting multiple columns from array

2014-09-26 Thread Devon McCormick
; 3 4 5││8 9 0 1││4 5 6 7│ > > > > > > > > > > > > > └───┘ > > > > -- > For information about J forums see http://www.jsoftware.com/forums.htm -- Devon McCormick, CFA -- For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] Length errors when getting multiple columns from array

2014-09-26 Thread Devon McCormick
; > ┌─┐ > > > > > > │0 1 2│ > > > > > > │6 7 8│ > > > > > > │2 3 4│ > > > > > > │8 9 0│ > > > > > > │4 5 6│ > > > > > > │0 1 2│ > > > > > > │6 7 8│ > > > > > >

Re: [Jprogramming] Project Euler 85, Python and J

2014-10-07 Thread Devon McCormick
uot;(0)/~ 200, I get a big array, and I know I can get the > > closest absolute value to 2 million but then I need to get the original > > values to multiply together to give the best fit area. Actually I have > > bumped into this issue many times. It is easy enough in a 1-d array,just > do: > > (I. somefunc ) { ]

Re: [Jprogramming] Project Euler 85, Python and J

2014-10-07 Thread Devon McCormick
inally, testing it: ($ #: [: (] i. <./) ,) 2e6(-|)nr 19 24 On Tue, Oct 7, 2014 at 11:30 AM, Devon McCormick wrote: > Hi - > > "countRects" seems like a bit of a leap. I think I understand "4 %~" > because you're overcounting by 4 rotations, but I don&#

Re: [Jprogramming] Project Euler 85, Python and J

2014-10-07 Thread Devon McCormick
ould be more general than the > getSizes filter for >: i.2000 > >4 %~ */@(, >:) 1 2000x > 2001000 >4 %~ */@(, >:) 1 1999x > 1999000 > > > - Original Message - > From: Devon McCormick > To: J-programming forum > Cc: > Sent: Tuesday,

Re: [Jprogramming] Project Euler 85, Python and J

2014-10-08 Thread Devon McCormick
.5) * ((y * (y + 1)) * 0.5) is the number of ways to > > choose the lines to make a rectangle > > refactoring: > > 4 %~ x * (x+1) * y * (y+1) > > 4 %~ */ x,(x+1),y,(y+1) > > 4 %~ */ x,y,(x+1),(y+1) > > 4 %~ */ (, >:) x,y > > > > HTH > > >

[Jprogramming] NYCJUG meeting Tuesday, 10/14, 18:30 (provisionally) @ BEST in Hoboken, NJ

2014-10-09 Thread Devon McCormick
YCJUG . -- Devon McCormick, CFA -- For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] NYCJUG meeting Tuesday, 10/14, 18:30 - definitely at Heartland

2014-10-10 Thread Devon McCormick
The location of Tuesday's meeting is the Heartland, downstairs, in the Empire State Building, 34th and Fifth, NYC. Take a look at ​ http://www.meetup.com/J-Dynamic-Functional-Programming/ or ​ http://www.jsoftware.com/jwiki/NYCJUG for more details. Regards, Devon -- Devon McCormick

Re: [Jprogramming] Project Euler 85, Python and J

2014-10-10 Thread Devon McCormick
t; >> closest absolute value to 2 million but then I need to get the original > >> values to multiply together to give the best fit area. Actually I have > >> bumped into this issue many times. It is easy enough in a 1-d array,just > do: > >> (I. somefunc ) { ]) > >> > >&g

Re: [Jprogramming] Project Euler 85, Python and J

2014-10-11 Thread Devon McCormick
area = i*j > > > > > >> bestfit = diff > > > > > >>print "AREA is "+str(area) > > > > > >> > > > > > >> > > > > > >> The above script > > will > > > > > give > > >

Re: [Jprogramming] J code for integer partitions & scale-weight balancing?

2014-10-13 Thread Devon McCormick
d #101 Home (240)-246-7240 > Rockville, MD 20850-6667Mobile (413)-427-5334 > > > > > > ------ > For information about J forums see http://www.jsoftware.com/forums.htm > -- Devon McCormick, CFA -

Re: [Jprogramming] J code for integer partitions & scale-weight balancing?

2014-10-13 Thread Devon McCormick
At the bottom of the page is a verb for finding Partitions, by r.e. boss. > It may be helpful. > > --- Original Message --- > > From: "Devon McCormick" > Sent: October 14, 2014 9:07 AM > To: "J-programming forum" > Subject: Re: [Jprogramming] J code for

Re: [Jprogramming] Bitmaps and Image addons

2014-10-20 Thread Devon McCormick
om/jwiki/Addons/media/image3 > But cannot find the image3 addon anywhere in J802. > Any ideas? > Regards. > ------ > For information about J forums see http://www.jsoftware.com/forums.htm > -- Devon McCormick, CFA -- For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] Bitmaps and Image addons

2014-10-21 Thread Devon McCormick
--- > > For information about J forums see http://www.jsoftware.com/forums.htm > > > -- > For information about J forums see http://www.jsoftware.com/forums.htm > -- Devon McCormick, CFA -- For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] Algorithm to Check Graph is connected

2014-10-29 Thread Devon McCormick
toin =: toin , j > >> > >> end. > >> > >> > >> > >> > >> end. > >> > >> NB. append toin to in. Number of connected nodes increases. > >> > >> in =: ~. in, toin > >> > >> NB. check connectivity. > >> > >> isconnected =:-. (# in ) < size > >> > >> if. isconnected do. > >> > >> end. > >> > >> end. > >> > >> isconnected > >> > >> ) > >> > >> > >> For testing purposes here are two sample matrices: > >> > >> > >> mat1 =: 5 5 $ _ 3 4 2 _, 3 _ _ 1 8, 4 _ _ 5 5, 2 1 5 _ _, _ 8 5 _ _ > >> mat2 =: 3 3 $ _ 1 _, 1 _ _, _ _ _ > >> mat1 should be connected, while mat2 is disconnected. > >> > >> > >> > >> > >> > >> > >> > >> > >> -- > >> For information about J forums see http://www.jsoftware.com/forums.htm > >> > > > > > -- > For information about J forums see http://www.jsoftware.com/forums.htm > -- Devon McCormick, CFA -- For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] 32 bit mersenne twister in 64 bit J

2014-10-31 Thread Devon McCormick
--- > For information about J forums see http://www.jsoftware.com/forums.htm > -- > For information about J forums see http://www.jsoftware.com/forums.htm > -- Devon McCormick, CFA -- For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] Algorithm to Check Graph is connected

2014-10-31 Thread Devon McCormick
the > >> > >> minimum of that result and the original pair distance. > >> > >> > >> > >> The tricky part, if you have not seen it before, is the inner > product: > >> > >> u/ .v > >> > >> > >> > >> Matrix m

Re: [Jprogramming] This surprised me.

2014-11-03 Thread Devon McCormick
; L--- > > > > > > > > I can't find where to get "html" or "rich text" in the current > Outlook. > > > > Sorry. > > > > > > > > Linda > > > > > > > > -Original Message- > > >

Re: [Jprogramming] This surprised me.

2014-11-03 Thread Devon McCormick
--+--+ |hi |ho| | ++--+--+ |off |to| | ++--+--+ |work|we|go| ++--+--+ 9!:7]a.{~16+i.11 ('hi';'ho'),('off';'to'),:'work';'we';'go' ┌┬──┬──┐ │hi │ho│ │ ├┼──┼──┤ │off │to│ │ ├┼──┼──┤ │work│we│go│ └┴──┴──┘

Re: [Jprogramming] This surprised me.

2014-11-03 Thread Devon McCormick
┬──┐ > > │hi │ho│ │ > > ├┼──┼──┤ > > │off │to│ │ > > ├┼──┼──┤ > > │work│we│go│ > > └┴──┴──┘ > > > ...? (style="font-family:'Lucida Console',Consolas,'Courier New Bold', > monospace") > ​ > greg > ~krsnadas.or

Re: [Jprogramming] This surprised me.

2014-11-04 Thread Devon McCormick
> > > > > > Thanks, > > > > > > > > -- > > > > Raul > > > > > > > > > > > > On Mon, Nov 3, 2014 at 8:35 PM, bill lam > wrote: > > > > > > > > > J forum rejects html formated emails, onl

Re: [Jprogramming] This surprised me.

2014-11-04 Thread Devon McCormick
's png viewer in > your browser, so you can view the images. If that doesn't work, you should > be able to download them. > > Skip > > Skip Cave > Cave Consulting LLC > > On Mon, Nov 3, 2014 at 6:28 PM, Devon McCormick > wrote: > > > Who is able to se

Re: [Jprogramming] This surprised me.

2014-11-04 Thread Devon McCormick
; > > > For the last week I hae been using Windows 8, and current Word and > Outlook > > and updated J. So I was happy to see your lovely images! I especially > > miss the boxes. > > > > Linda > > > > > -- > For information about J forums see http://www.jsoftware.com/forums.htm > -- Devon McCormick, CFA -- For information about J forums see http://www.jsoftware.com/forums.htm

[Jprogramming] NYCJUG Tuesday, November 11th, 18:30, Heartland, Empire State Building...

2014-11-04 Thread Devon McCormick
...34th Street and Fifth Avenue, NYC. All are welcome! Take a look at the J wiki - http://www.jsoftware.com/jwiki/NYCJUG - or our Meetup page - http://www.meetup.com/J-Dynamic-Functional-Programming/ - for more info. -- Devon McCormick, CFA

Re: [Jprogramming] greyscale viewmat

2014-11-11 Thread Devon McCormick
ble */~i. 13 in greyscale​ > > -- > (B=) > -- > For information about J forums see http://www.jsoftware.com/forums.htm -- Devon McCormick, CFA

Re: [Jprogramming] greyscale viewmat

2014-11-12 Thread Devon McCormick
make sense for viewmat too? > > > > > > > > [0]: > > > > > > > > > > > > > > http://blogs.mathworks.com/steve/2014/10/13/a-new-colormap-for-matlab-part-1-introduction/ > > > > > > > > -- > > > (B=) > > > ----

Re: [Jprogramming] Run Mutiple Lines

2014-11-13 Thread Devon McCormick
; the > > C# side. > > > > Is there are a possibility? > > -- > > For information about J forums see http://www.jsoftware.com/forums.htm > > &g

[Jprogramming] Correct behavior of "e." ?

2014-11-20 Thread Devon McCormick
Hi - I was just burned by this apparent anomaly: 1 e. 0~: i. 2 2 0 but 1 e. , 0~: i. 2 2 1 Has anyone else noticed this? Am I right in thinking this is incorrect behavior in the first case? Regards, Devon -- Devon McCormick, CFA

Re: [Jprogramming] Correct behavior of "e." ?

2014-11-20 Thread Devon McCormick
> > > On Thu, Nov 20, 2014 at 10:19 AM, Devon McCormick > wrote: > > > Hi - > > > > I was just burned by this apparent anomaly: > >1 e. 0~: i. 2 2 > > 0 > > > > but > >1 e. , 0~: i. 2 2 > > 1 > > > > Has anyo

Re: [Jprogramming] Best way to check matrix equality

2014-11-24 Thread Devon McCormick
Is this the preferred way? > Thanks,Jon > -- > For information about J forums see http://www.jsoftware.com/forums.htm > -- Devon McCormick, CFA -- For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] Best way to check matrix equality

2014-11-24 Thread Devon McCormick
.g. if m1 is some matrix and I have another matrix m2, which has the > same > > > shape, I do: > > > (< m1) = (< m2) > > > Is this the preferred way? > > > Thanks,Jon > > > -- > > > For information about J forums see http:/

Re: [Jprogramming] Split on first found character

2014-11-25 Thread Devon McCormick
> > > > The information in this e-mail is intended only for the person to whom > it > > > is > > > addressed. If you believe this e-mail was sent to you in error and the > > > e-mail > > > contains patient information, please contact the Partners Compliance &g

[Jprogramming] Embarassing Problem

2014-11-25 Thread Devon McCormick
'y (+*:`] @. (2:<|)"0) y' mm=. mandel0^:3 ] m1k viewmat mmNB. Not the same as the above mandel0=: 3 : '((+*:)`] @. (2:<|)"0) y' mm=. mandel0^:3 ] m1k NB. Even worse: crashes J Process sh

Re: [Jprogramming] Embarassing Problem

2014-11-25 Thread Devon McCormick
I figured it out: the left argument remains constant. 13 : 'x (+*:`] @. (2:<|)"0) y' + *:`]@.(2: < |)"0 mandel2=: + *:`]@.(2: < |)"0 mm=. m1k mandel2^:3]m1k -- Devon McCormick, CFA ---

[Jprogramming] Emscripted J

2014-11-29 Thread Devon McCormick
Hi - to be clear, does having this emscripted, Javascript version of J mean I should be able to run J code on a client-side web page by including the Javascript module? -- Devon McCormick, CFA -- For information about J forums

Re: [Jprogramming] Hexadecimal conversion

2014-12-01 Thread Devon McCormick
> Thanks. > > > > -- > > For information about J forums see http://www.jsoftware.com/forums.htm > > -- > > For information about J forums see http://www.jsoftware.com/forums.htm > > -- > For information about J forums see http://www.jsoftware.com/forums.htm > -- Devon McCormick, CFA -- For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] Hexadecimal conversion

2014-12-01 Thread Devon McCormick
hoose to represent my integer in standard byte order > > > hex, I can do: > > > > > > > > 0 tohex 15 > > > > which gives, > > > > e000 > > > > 0004 > > > > 0001 > > > >

[Jprogramming] NYCJUG 18:30 9/9/2014, Empire State Building NYC

2014-12-06 Thread Devon McCormick
We'll be wrapping up our 10th year of meetings with our meeting this Tuesday. -- Devon McCormick, CFA -- For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] Trim trailing whitespace

2014-12-09 Thread Devon McCormick
gt; > > > > > > > > > > -- > > For information about J forums see http://www.jsoftware.com/forums.htm > > > -- > For information about J forums see http://www.jsoftware.com/forums.htm > -- Devon McCormick, CFA -- For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] Finite element method

2014-12-10 Thread Devon McCormick
-- > For information about J forums see http://www.jsoftware.com/forums.htm > -- Devon McCormick, CFA -- For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] jconsole (J) vs jconsole (Java)

2014-12-15 Thread Devon McCormick
>> For information about J forums see http://www.jsoftware.com/forums.htm > >> -- > >> For information about J forums see http://www.jsoftware.com/forums.htm > > > > > > -- > > Cheers, > > > > Andre

Re: [Jprogramming] Repeated rolling dice

2015-01-01 Thread Devon McCormick
t;> end. > >>>>> > >>>>>>> y{.r > >>>>> > >>>>>>> ) > >>>>> > >>>>>>> > >>>>> > >>>>>>> Do you see why this tends to be more efficient? > >>>>> > >>>>>>> > >>>>> > >>>>>>> Thanks, > >>>>> > >>>>>>> > >>>>> > >>>>>>> -- > >>>>> > >>>>>>> Raul > >>>>> > >>>>>>> > >>>>> > >>>>>>> > >>>>> > >>>>>>> On Thu, Sep 25, 2014 at 11:50 AM, 'Pascal Jasmin' via Programming > >>>>>>> < > >>>>> > >>>>>>> <mailto:programm...@jsoftware.com> programm...@jsoftware.com> > >>>> wrote: > >>>>> > >>>>>>> > >>>>> > >>>>>>>> this works > >>>>> > >>>>>>>> > >>>>> > >>>>>>>> (, >:@?@6:)^:((0=#) +. 6={:)^:_ i.0 > >>>>> > >>>>>>>> > >>>>> > >>>>>>>> ([: +/ (, >:@?@6:)^:((0=#) +. 6={:)^:_) i.0 > >>>>> > >>>>>>>> 11 > >>>>> > >>>>>>>> > >>>>> > >>>>>>>> > >>>>> > >>>>>>>> > >>>>> > >>>>>>>> - Original Message - > >>>>> > >>>>>>>> From: Johann Hibschman < <mailto:jhibsch...@gmail.com> > >>>>> jhibsch...@gmail.com> > >>>>> > >>>>>>>> To: Programming forum < <mailto:programm...@jsoftware.com> > >>>>> programm...@jsoftware.com> > >>>>> > >>>>>>>> Cc: > >>>>> > >>>>>>>> Sent: Thursday, September 25, 2014 9:06 AM > >>>>> > >>>>>>>> Subject: [Jprogramming] Repeated rolling dice > >>>>> > >>>>>>>> > >>>>> > >>>>>>>> Hi all, > >>>>> > >>>>>>>> > >>>>> > >>>>>>>> For fun, I've been running some statistics for a game with an > >>>>> > >>>>>>>> unusual rule for rolling dice: if a 6 is rolled, roll again and > >>>>>>>> add > >>>>> > >>>>>>>> the result, repeating on any subsequent 6s. I wanted to > >> implement > >>>>> > >>>>>>>> this in J, collecting all the individual rolls (rather than just > >>>>> > >>>>>>>> the sum.) > >>>>> > >>>>>>>> > >>>>> > >>>>>>>> It seems like there should be a more clever and elegant way to > >> do > >>>>> > >>>>>>>> this, but this is what I have: > >>>>> > >>>>>>>> > >>>>> > >>>>>>>> NB. Simple roll. > >>>>> > >>>>>>>> roll0 =: >:@? > >>>>> > >>>>>>>> > >>>>> > >>>>>>>> NB. This seems to work, but it's not very clever. > >>>>> > >>>>>>>> roll =: 3 : 0 > >>>>> > >>>>>>>> r =. >:?y > >>>>> > >>>>>>>> if. r=y do. r=. r,(roll y) end. > >>>>> > >>>>>>>> r > >>>>> > >>>>>>>> ) > >>>>> > >>>>>>>> > >>>>> > >>>>>>>> NB. Attempt at iterating via power. Fails because repeats NB. > >>>>> > >>>>>>>> signal termination. > >>>>> > >>>>>>>> roll0^:(6&=)^:(<_) 6 > >>>>> > >>>>>>>> > >>>>> > >>>>>>>> NB. Attempt at iterating via agenda. Not even close yet. > >>>>> > >>>>>>>> NB. ]`(]+$:) @. (=&6) NB. where to stick in the roll? > >>>>> > >>>>>>>> > >>>>> > >>>>>>>> This gives what I expect: > >>>>> > >>>>>>>> > >>>>> > >>>>>>>> roll"0 ] 10#6 > >>>>> > >>>>>>>> 6 1 0 > >>>>> > >>>>>>>> 3 0 0 > >>>>> > >>>>>>>> 3 0 0 > >>>>> > >>>>>>>> 2 0 0 > >>>>> > >>>>>>>> 5 0 0 > >>>>> > >>>>>>>> 2 0 0 > >>>>> > >>>>>>>> 6 6 2 > >>>>> > >>>>>>>> 2 0 0 > >>>>> > >>>>>>>> 1 0 0 > >>>>> > >>>>>>>> 6 3 0 > >>>>> > >>>>>>>> > >>>>> > >>>>>>>> But is there a better way to do this? Also, are there any known > >>>>> > >>>>>>>> issues with the RNG? I've not gathered enough statistics to > >> prove > >>>>> > >>>>>>>> it, but the results look clumpier (more identical values in a > >>>>>>>> row) > >>>>> than > >>>>> I expect. > >>>>> > >>>>>>>> Now, I know that's a common cognitive bias, so it may just be > >> me, > >>>>> > >>>>>>>> but is there a discussion of the quality of the RNG somewhere? > >>>>> > >>>>>>>> > >>>>> > >>>>>>>> Thanks, > >>>>> > >>>>>>>> Johann > >>>>> > >>>>>>>> > >> - > >>>>>>>> -- > >>>>> > >>>>>>>> --- For information about J forums see > >>>>> > >>>>>>>> <http://www.jsoftware.com/forums.htm> > >>>>> http://www.jsoftware.com/forums.htm > >>>>> > >>>>>>>> > >>>>> > >>>>>>>> > >> - > >>>>>>>> -- > >>>>> > >>>>>>>> --- For information about J forums see > >>>>> > >>>>>>>> <http://www.jsoftware.com/forums.htm> > >>>>> http://www.jsoftware.com/forums.htm > >>>>> > >>>>>>>> > >>>>> > >>>>>>> > >> -- > >>>>>>> -- > >>>>> > >>>>>>> -- For information about J forums see > >>>>> > >>>>>>> <http://www.jsoftware.com/forums.htm> > >>>>> http://www.jsoftware.com/forums.htm > >>>>> > >>>>>> > >> > >>>>>> -- > >>>>> > >>>>>> For information about J forums see > >>>>>> <http://www.jsoftware.com/forums.htm > >>>>>> > >>>>> http://www.jsoftware.com/forums.htm > >>>>> > >>>>>> > >>>>> > >>>>> > >> -- > >>>>> > >>>>> For information about J forums see > >>>>> <http://www.jsoftware.com/forums.htm> > >>>>> http://www.jsoftware.com/forums.htm > >>>>> > >>>>> > >> -- > >>>>> For information about J forums see > >> http://www.jsoftware.com/forums.htm > >>>> -- > >>>> For information about J forums see > http://www.jsoftware.com/forums.htm > >>>> > >>>> -- > >>>> For information about J forums see > http://www.jsoftware.com/forums.htm > >>> -- > >>> For information about J forums see http://www.jsoftware.com/forums.htm > >>> > >> -- > >> For information about J forums see http://www.jsoftware.com/forums.htm > > -- > > For information about J forums see http://www.jsoftware.com/forums.htm > > -- > For information about J forums see http://www.jsoftware.com/forums.htm > -- Devon McCormick, CFA -- For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] Repeated rolling dice

2015-01-01 Thread Devon McCormick
e to make the emojii "heart" the most popular word in > 2014. > > cheers > > On Thu, Jan 1, 2015 at 2:29 PM, Devon McCormick > wrote: > > > I tried numerous different fonts on J802 and found the dice characters > > displaying only with "Deja Vu Sans"

[Jprogramming] Forward fill w/o looping

2015-01-05 Thread Devon McCormick
;'' ++--+--+--+--+--+---+---+---+---+---+---+--+--+ ||Hi|Hi|Hi|Ho|Ho|hee|hee|hee|haw|haw|haw|Yo|Yo| ++--+--+--+--+--+---+---+---+---+---+---+--+--+ Any ideas on something less loopy/conditional? -- Devon McCormick, CFA -- For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] Forward fill w/o looping

2015-01-05 Thread Devon McCormick
1 ] > )'Hi';'';'';'Ho';'';'hee';'';'';'haw';'';'';'Yo';'' > ┌──┬──┬──┬──┬──┬───┬───┬───┬───┬───┬───┬──┬──┐ > │Hi│Hi│Hi│Ho│Ho│hee│hee│hee│haw│haw│haw│Yo│Yo│ > └──┴──┴──┴──┴──┴───┴───┴───┴───┴───┴───┴──┴

Re: [Jprogramming] Help me understand line of code:

2015-01-06 Thread Devon McCormick
[Jprogramming] Help me understand line of code: > > Help me understand line of code: > > >./ +/"1 (+/\"1 ]0,.15+#:i.2^14){,t > -- > For information about J forums see http://www.jsoftware.com/forums.htm > > -- > For information about J forums see http://www.jsoftware.com/forums.htm > -- Devon McCormick, CFA -- For information about J forums see http://www.jsoftware.com/forums.htm

[Jprogramming] NYCJUG meeting Tuesday, 1/13, 18:30 at BEST in Hoboken, NJ

2015-01-07 Thread Devon McCormick
look at our Meetup site at http://www.meetup.com/J-Dynamic-Functional-Programming/ and our presence on the J wiki at http://www.jsoftware.com/jwiki/NYCJUG for meeting announcements and write-ups of previous meetings. Hope to see you there! Devon -- Devon McCormick, CFA

Re: [Jprogramming] awesome j image

2015-01-08 Thread Devon McCormick
gt; > NB. lol: removes every other item. (l=1 o=0) > NB. tile uses this to cut out overlapping tiles created by 2 2 <;.3 > lol =: (# $ 1 , 0:) # ] > NB. tile: converts a rank 2 array to an array of of 2x2 boxed tiles > tile =: [: (lol"1)@lol 2 2 <;.3 ] > NB. blit > bl

Re: [Jprogramming] awesome j image

2015-01-08 Thread Devon McCormick
blit {: |:#:!/~i.64x |value error: hext |blit[0] On Thu, Jan 8, 2015 at 4:12 PM, Devon McCormick wrote: > You might try using "64x" instead of 64 as the argument. > > On Thu, Jan 8, 2015 at 4:02 PM, Michal Wallace > wrote: > >> I just stumbled onto this im

Re: [Jprogramming] awesome j image

2015-01-09 Thread Devon McCormick
gentstorm/tangentlabs/blob/master/j/irctoys.ijs > > Yeah... 64x or using 2| instead of #: give you the plain sierpinski > triangle. > I'm probably just silly but the image with a bite taken out of it cracked > me up. :) > > On Thu, Jan 8, 2015 at 3:13 PM, Devon McCormick &g

Re: [Jprogramming] awesome j image

2015-01-09 Thread Devon McCormick
ssage- > From: programming-boun...@forums.jsoftware.com [mailto: > programming-boun...@forums.jsoftware.com] On Behalf Of Devon McCormick > Sent: Friday, January 9, 2015 8:57 AM > To: J-programming forum > Subject: Re: [Jprogramming] awesome j image > > Yes - I hadn't thought of

[Jprogramming] Functional language and other conferences

2015-01-14 Thread Devon McCormick
a paper or talk proposal, like the one Tracy Harms did on J at the Strange Loop conference: http://www.infoq.com/presentations/j-language . Also, if you know of any similar venues that might be amenable to something completely different, I'd be happy to put up a notice on that page. Thanks,

Re: [Jprogramming] J Equivalent of Python Struct.Pack/Unpack

2015-01-20 Thread Devon McCormick
om/forums.htm > > -- > > For information about J forums see http://www.jsoftware.com/forums.htm > > > -- > For information about J forums see http://www.jsoftware.com/forums.htm > -- > For information about J forums see http://www.jsoftware.com/forums.htm > -- Devon McCormick, CFA -- For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] 2D probability distribution plot

2015-01-20 Thread Devon McCormick
/www.partners.org/complianceline . If the e-mail was sent to you in > error > but does not contain patient information, please contact the sender and > properly > dispose of the e-mail. > > -- > For i

Re: [Jprogramming] 2D probability distribution plot

2015-01-21 Thread Devon McCormick
liance > > HelpLine at > > http://www.partners.org/complianceline . If the e-mail was sent to you > in > > error > > but does not contain patient information, please contact the sender and > > properly > > dispose of the e-mail. > > > > -- > > For information about J forums see http://www.jsoftware.com/forums.htm > -- > For information about J forums see http://www.jsoftware.com/forums.htm > -- Devon McCormick, CFA -- For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] Need help going from tacit to direct definitionI want to write gg in direct definition as g=: 13 ::

2015-01-21 Thread Devon McCormick
│--┐│--T-┐│--T-T-┐│--T-T-T-┐│ > ││ │││ │ │││ │ │ │││ │ │ │ ││ > │+-+│+-+-+│+-+-+-+│+-+-+-+-+│ > ││ │││ │ │││ │ │ │││ │ │ │ ││ > │L--│L-+--│L-+-+--│L-+-+-+--│ > +---+-+---+-+ > │--┐│--T-┐│--T-T-┐│--T-T-T-┐│ > ││ │││ │ │││ │ │ │││ │ │ │ ││ > │+-+│+-+-+│+-+-+-+│+-+-+-+-+│ > ││ │││ │ │││ │ │ │││ │ │ │ ││ > │+-+│+-+-+│+-+-+-+│+-+-+-+-+│ > ││ │││ │ │││ │ │ │││ │ │ │ ││ > │

Re: [Jprogramming] 2D probability distribution plot

2015-01-27 Thread Devon McCormick
ference.phy.cam.ac.uk/mackay/itila/ > > > > On 22 Jan 2015, at 0:37, Devon McCormick wrote: > > Raul's example assumes your data is between 0 and 1, inclusive, so you may >> need to scale it: >> 13 : 'y-<./,y' NB. Subtract the smallest

[Jprogramming] NYCJUG 2/10, 18:30, The Heartland, NYC

2015-02-06 Thread Devon McCormick
e.com/jwiki/NYCJUG and http://www.meetup.com/J-Dynamic-Functional-Programming/ . Hope to see you there! -- Devon McCormick, CFA -- For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] Bar plot - x axis

2015-02-08 Thread Devon McCormick
> generates a bar plot where x=1..5, and not x=0..4 > > Same for 'hist', 'sbar', etc. > > > > thanks for any help, > > Ryan > > > > > > -- > (B=) > -

Re: [Jprogramming] Bar plot - x axis

2015-02-08 Thread Devon McCormick
No luck. Still have to debug it on my own... On Sun, Feb 8, 2015 at 3:45 PM, Devon McCormick wrote: > I'll see if this helps a long-standing problem of "bar-creep" that I've > had with histograms for quite some time - see > http://www.jsoftware.com/jwiki/NYCJUG/20

Re: [Jprogramming] Bar plot - x axis

2015-02-09 Thread Devon McCormick
s of length 1 and some are of > length 2. Could that be the problem, and could the format be adjusted to > fix that? I cannot find the plot command in your example to investigate > myself. > > > On Sun, Feb 8, 2015 at 3:45 PM, Devon McCormick > wrote: > > > I'll

Re: [Jprogramming] Tea-tasting for non-statisticians

2015-02-25 Thread Devon McCormick
with a coin to toss > >> would > >> > do as well as you y% of the time. Most researchers accept results as > >> > significant only if the monkey would do as well less than 5% of the > time. > >> > Take more samples if you want less uncertainty." > >> > >> 95% is just for the sake of argument. 99% is there as an option. IMO > >> more options are neither necessary nor advisable. > >> The number of trials can be varied too. I'd like to offer 10 or 20 > >> trials. But 20 gets tedious, so I'm offering the option to give up > >> when you're bored and score the number you've done. > >> (This is an app for discretionary users -- we're not paying our > >> subjects $10 a session.) > >> > >> Anything under 7 trials fails to reject H0 however many successes. But > >> that's dependent on the value of CONFIDENCE and how it's to be > >> applied. But only to make a difference of 1 or maybe 2 trials. > >> I'm finding in practice that with such a low number of trials as 10, > >> anything short of 100% correct is statistical hairsplitting when it > >> comes to rejecting H0. With 20 trials there's more leeway: you're > >> allowed to get 3 or 4 wrong before the app rubbishes you. > >> > >> As for your wording: it's theoretically sound, but a trifle insulting. > >> Performing musicians have sizeable egos and wouldn't like to be rated > >> along with performing monkeys. :-) > >> > >> Ian > >> -- > >> For information about J forums see http://www.jsoftware.com/forums.htm > >> > > -- > > For information about J forums see http://www.jsoftware.com/forums.htm > -- > For information about J forums see http://www.jsoftware.com/forums.htm > -- Devon McCormick, CFA -- For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] Window j-console and Intel i7

2015-02-26 Thread Devon McCormick
largely sufficient for single task execution. > -- > For information about J forums see http://www.jsoftware.com/forums.htm > -- Devon McCormick, CFA -- For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] Window j-console and Intel i7

2015-02-26 Thread Devon McCormick
uot;named data" abstraction. > > Also, modern OS's are pretty good about caching files, not so good > about caching stuff going across sockets. > > Thanks, > > -- > Raul > > On Thu, Feb 26, 2015 at 11:29 AM, Devon McCormick > wrote: > > I run paral

Re: [Jprogramming] Running script from jconsole

2015-03-02 Thread Devon McCormick
> For information about J forums see http://www.jsoftware.com/forums.htm > -- > For information about J forums see http://www.jsoftware.com/forums.htm > -- Devon McCormick, CFA -- For information about J forums see http://www.jsoftware.com/forums.htm

[Jprogramming] Plot under jconsole

2015-03-03 Thread Devon McCormick
NB. load plot class a=: conew 'jzplot' NB. create plot object a Has anyone done this? If not, where might I look to figure this out, assuming it's even possible? Thanks, Devon -- Devon McCormick, CFA -

Re: [Jprogramming] Transform boxed data to html representation

2015-03-03 Thread Devon McCormick
ote: > Hi, > I need in my project to represent boxed data in html report > I try to find some code that can help me to do that > Thanks > > Nadav Chernin > ------ > For information about J forums see http://w

Re: [Jprogramming] Plot under jconsole

2015-03-03 Thread Devon McCormick
l the cairo addon and read its readme first. > This is independent of Qt. > > Please see jwiki plot output options. > On Mar 3, 2015 10:34 PM, "Devon McCormick" wrote: > > > Has anyone succeeded in using plot under jconsole? Is such a thing > > possible? &g

Re: [Jprogramming] Transform boxed data to html representation

2015-03-03 Thread Devon McCormick
anks > > > > Nadav Chernin > > ------ > > For information about J forums see http://www.jsoftware.com/forums.htm > > > -- > For information about J forums see http://www.jsoftware.com/forums.htm > -- Devon McCormick, CFA -- For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] Plot under jconsole

2015-03-03 Thread Devon McCormick
j803/2014-10-19-11:11:11 > Library: 8.03.10 > Platform: Linux 64 > Installer: J803 install > InstallPath: /opt/j64_803 > > > > On Wed, Mar 4, 2015 at 4:00 AM, Devon McCormick > wrote: > > > Thanks - I believe I've already used this under J7. I'll take a

Re: [Jprogramming] Plot under jconsole

2015-03-04 Thread Devon McCormick
plot i. 4 7 > > > > > > There is an evince error message (** (evince:28856): CRITICAL **: > > > ev_bookmarks_get_bookmarks: assertion 'EV_IS_BOOKMARKS (bookmarks)' > > failed) > > > but it doesn't seem to affect display. > > > > >

Re: [Jprogramming] qt platform independent rgb triple integers

2015-03-05 Thread Devon McCormick
e rgb levels? Easy to do on > any given platform, but if there is a "system" way, platform independence > can be carried forward. > Best, Cliff > -- > For information about J forums see http://www.jsoft

Re: [Jprogramming] Plotting a 3D Ellipse

2015-03-07 Thread Devon McCormick
- > For information about J forums see http://www.jsoftware.com/forums.htm > -- Devon McCormick, CFA -- For information about J forums see http://www.jsoftware.com/forums.htm

[Jprogramming] Loading "plot" crashes J8

2015-04-10 Thread Devon McCormick
#x27;;FHS;0;0 in "qapplication" from "qt.ijs". which appears to be loaded by "jzplot". JVERSION Engine: j701/2011-01-10/11:25 Library: 8.03.13 Platform: Win 64 Installer: J803 install InstallPath: c:/users/devon_mccormick/j64-803 Anyone else see this? Thanks,

Re: [Jprogramming] Loading "plot" crashes J8

2015-04-11 Thread Devon McCormick
t; Library: 8.03.13 >> Platform: Win 64 >> Installer: J803 install >> InstallPath: c:/users/lettoke/j64-803 >> >> >> >> On Fri, Apr 10, 2015 at 4:31 PM, Devon McCormick >> wrote: >> >> Hi - >>> >>> Just recently, loadi

Re: [Jprogramming] Loading "plot" crashes J8

2015-04-12 Thread Devon McCormick
having an addons/ide/qt folder > > That may be a temporary workaround if the problem is in qt.ijs or it may > help narrow down the problem > > hth, > > Joe > > > > On Sat, Apr 11, 2015 at 2:06 PM, Devon McCormick > wrote: > > > Hi - > > > >

Re: [Jprogramming] Loading "plot" crashes J8

2015-04-13 Thread Devon McCormick
f > or cairo output. Please update plot and test again. > > Вс, 12 апр 2015, Devon McCormick написал(а): > > Joe - > > > > This avoids the problem - I'm able to plot with 64-bit J8 now - thanks! > > > > I don't know why I need to load this if I'm

  1   2   3   4   5   6   7   8   9   10   >