Re: [Jprogramming] Random Numbers

2017-10-29 Thread 'Skip Cave' via Programming
Bob, thanks for the link. I searched the jsoftware.com website for the rand11 verb, and none of the hits showed the code, or what package the function might be in. I just found a brief description, with no indication what package the verb might be in: rand11 random

Re: [Jprogramming] Euclidean Distance

2017-10-29 Thread Louis de Forcrand
I believe you can easily plot points in 3D space with lines betweens pairs of points: require 'plot' plot (; 2&o. ; 1&o.) i:10j100 Cheers, Louis > On 28 Oct 2017, at 15:12, 'Skip Cave' via Programming > wrote: > > Thanks to Raul & Esa for their very clear instructions and examples for > plot

Re: [Jprogramming] Partitions

2017-10-29 Thread Erling Hellenäs
Hi all! Here Mike Days modification of Esa Lippu algorithm with a fix to generate less combinations. Faster and uses less memory. parELMDE=: 4 : 0 a =. ~. i.~"1 iy #: i. */ iy =. (1+i.x),(y-x)$x a =. a#~ x = #@~."1 a sort a Here's a debugged version of par that seems to have reasonable pe

Re: [Jprogramming] 2D & 3D Point Plots

2017-10-29 Thread Cliff Reiter
Two possible leads (without chasing the old threads): (1) fvj4/dwin.ijs or chapter 10 in FVJ4 load '~addons/graphics/fvj4/dwin.ijs' There is a FVJ4 dwin lab and some examples in remarks at the end of the script. Not 3D point sets, but they might be added small polygons used instead. Some simple

Re: [Jprogramming] Random Numbers

2017-10-29 Thread robert therriault
Hi Skip, I did a search with the finder on my mac for the text "rand11=" and those were two of the files that were shown to contain it. It is the trick that I use to find the origins of verbs that don't show up in the usual ways. Cheers, bob > On Oct 29, 2017, at 12:23 AM, 'Skip Cave' via Prog

Re: [Jprogramming] Partitions

2017-10-29 Thread Raul Miller
Ah, excellent. require'stats' parRDM=:4 :0 x (1+y-x) P y ) combine=:1 :0 : q=.(#;{.x)=#@>y if.1 e.,q do. b=. ,(<./@>x)<:/ q <./@;@#"1 y b # ,/ x ([,] ({L:0 ,) (i.m)-.S:0 [)"0 1/ y else. ,/ x ([,] ({L:0 ,) (i.m)-.S:0 [)"0 1/ y end. ) P=:1 :0 : NB. x: number of partiti

Re: [Jprogramming] Partitions

2017-10-29 Thread 'Mike Day' via Programming
It might be worth considering Lippa Esa’s array “a” as the final output, since it’s in 1-1 correspondence with the boxed array under discussion. Mike Please reply to [email protected]. Sent from my iPad > On 28 Oct 2017, at 18:06, Erling Hellenäs wrote: > > Hi all ! > > I tr

Re: [Jprogramming] Partitions

2017-10-29 Thread Raul Miller
Actually, it would be a wrote: > It might be worth considering Lippa Esa’s array “a” as the final output, > since it’s in 1-1 correspondence with the boxed array under discussion. > > Mike > > > Please reply to [email protected]. > Sent from my iPad > >> On 28 Oct 2017, at 18:06, Er

Re: [Jprogramming] Partitions

2017-10-29 Thread '[email protected]' via Programming
Here’s my attempt at a constructive approach. In haste, as Liz wants to get away from this WiFi spot! So no time for explanation... and I haven’t had an opportunity to digest Erland’s improvement to my improvement to Lippa Esu’s verb. Sorry for brevity. constructpart =: 3 : 0 : d =. y m

Re: [Jprogramming] Partitions

2017-10-29 Thread Erling Hellenäs
Hi all ! Is this some known algorithm? Ruskey or Knuth, for example. Cheers, Erling Hellenäs On 2017-10-29 17:53, Raul Miller wrote: Ah, excellent. require'stats' parRDM=:4 :0 x (1+y-x) P y ) combine=:1 :0 : q=.(#;{.x)=#@>y if.1 e.,q do. b=. ,(<./@>x)<:/ q <./@;@#"1 y b #

Re: [Jprogramming] Partitions

2017-10-29 Thread Raul Miller
I have no idea. I just made it up. That said, I would be surprised if someone else had not thought of it already. Thanks, -- Raul On Sun, Oct 29, 2017 at 3:01 PM, Erling Hellenäs wrote: > Hi all ! > > Is this some known algorithm? Ruskey or Knuth, for example. > > Cheers, > Erling Hellenäs >

Re: [Jprogramming] Partitions

2017-10-29 Thread Erling Hellenäs
Hi all! I miss the comb  verb. Cheers, Erling Hellenäs On 2017-10-29 17:53, Raul Miller wrote: Ah, excellent. require'stats' parRDM=:4 :0 x (1+y-x) P y ) combine=:1 :0 : q=.(#;{.x)=#@>y if.1 e.,q do. b=. ,(<./@>x)<:/ q <./@;@#"1 y b # ,/ x ([,] ({L:0 ,) (i.m)-.S:0 [)"0 1

[Jprogramming] J806 beta-7

2017-10-29 Thread Eric Iverson
Release package zips for Windows/Linux/OSX J806 beta-7 are now available. This is your last chance to head of problems and bugs before they make it into the release. Please take a serious look. Install instructions at: http://code.jsoftware.com/wiki/System/Installation/Zips With luck this is the

Re: [Jprogramming] Partitions

2017-10-29 Thread Raul Miller
require'stats' should define it for you? Thanks, -- Raul On Sun, Oct 29, 2017 at 3:12 PM, Erling Hellenäs wrote: > Hi all! > > I miss the comb verb. > > Cheers, > Erling Hellenäs > > On 2017-10-29 17:53, Raul Miller wrote: >> >> Ah, excellent. >> >> require'stats' >> >> parRDM=:4 :0 >>x

Re: [Jprogramming] Partitions

2017-10-29 Thread Erling Hellenäs
Hi all! I took a sample. We must remember that when we have 10 buckets and 10 elements, we get only one combination. However, it seems Rauls algorithm is better for high y. parELMDE still generates too many unused combinations.    x=:5    y=:10    ts'x parR y' 0.211737 2.7077e7    ts'x parELM

Re: [Jprogramming] Partitions

2017-10-29 Thread Erling Hellenäs
Hi all! Here y = 12. About the same relation between them as with 10. y=:12 x=:5    ts'x parR y' 6.88729 7.90934e8    ts'x parELMDE y' 15.5459 3.62388e9 Cheers, Erling Hellenäs On 2017-10-29 20:37, Erling Hellenäs wrote: Hi all! I took a sample. We must remember that when we have

Re: [Jprogramming] Random Numbers

2017-10-29 Thread 'Skip Cave' via Programming
Bob, Thanks for the tip. It would be nice if there was a packages table of contents on the Jsoftware.com website, with links to each package as well as links to all the defined verbs in each package. Then one could track down useful verbs using the Jsoftware.com website search bar. Perhaps having

Re: [Jprogramming] Partitions

2017-10-29 Thread Erling Hellenäs
At x=:10,y=:10 parELMDE generates !10 combinations. If you only need one it's quite a lot. Lol. !10 3.6288e6 /Erling On 2017-10-29 20:53, Erling Hellenäs wrote: Hi all! Here y = 12. About the same relation between them as with 10. y=:12 x=:5    ts'x parR y' 6.88729 7.90934e8   

Re: [Jprogramming] J806 beta-7

2017-10-29 Thread Henry Rich
This beta has a pretty big change to handling of usecounts in boxed arrays, which will make a big difference to applications that use arrays with many boxes, or that amend boxed arrays. Please download this and try it so we can fix any errors before the release. Henry Rich On Oct 29, 2017 15:15

Re: [Jprogramming] Random Numbers

2017-10-29 Thread Raul Miller
Well... I suppose you could do what I do: (1) Have cygwin.com's system installed. (Need to pick 32 or 64 bit as appropriate for your version of windows - probably the 64 bit version. You do not need any of the optional packages.) (2) Start up a cygwin shell. The command structure is a bit differe

Re: [Jprogramming] Partitions

2017-10-29 Thread Linda Alvord
Here's another comb.If you can RED it ,would you please post it for me. Thanks. load 'stats'comb2=:([ = [: +/"1 [: #: [: i. 2 ^ ]) ([: |. [: I. #) [: #: [: i. 2 ^ ](4 comb2 7)-:4 comb 7 Linda . Sent from AOL Mobile Mail -Original Message- From: Raul Miller To: Programming forum Se

Re: [Jprogramming] J806 beta-7

2017-10-29 Thread Devon McCormick
Will this allow sparse boxed arrays? BTW - once again, the latest release of J (8.06) breaks the code I run every day, perhaps because the image-reading verbs I used to get from jqt are no longer there. On Sun, Oct 29, 2017 at 6:23 PM, Henry Rich wrote: > This beta has a pretty big change to ha

Re: [Jprogramming] Random Numbers

2017-10-29 Thread Devon McCormick
For an individual name, you could use "whereDefined" to good effect: whereDefined=: 3 : '(4!:4{.;:y) {:: (4!:3),<''Source of definition not found for '',''.'',~y' whereDefined 'calendar' E:\Users\DevonMcC\j64-804\system\main\stdlib.ijs whereDefined 'calendar_z_' E:\Users\DevonMcC\j64-

Re: [Jprogramming] Random Numbers

2017-10-29 Thread Raul Miller
Only if the definition is active. Thanks, -- Raul On Sun, Oct 29, 2017 at 8:20 PM, Devon McCormick wrote: > For an individual name, you could use "whereDefined" to good effect: > >whereDefined=: 3 : '(4!:4{.;:y) {:: (4!:3),<''Source of definition > not found for '',''.'',~y' >wher

Re: [Jprogramming] J806 beta-7

2017-10-29 Thread bill lam
I can't comment on why image reading didn't work for you as you had not shown us how to replicate the failure. On Oct 30, 2017 8:10 AM, "Devon McCormick" wrote: > Will this allow sparse boxed arrays? > > BTW - once again, the latest release of J (8.06) breaks the code I run > every day, perhaps

Re: [Jprogramming] J806 beta-7

2017-10-29 Thread Henry Rich
No sparse boxed arrays Henry Rich On Oct 30, 2017 12:10 AM, "Devon McCormick" wrote: Will this allow sparse boxed arrays? BTW - once again, the latest release of J (8.06) breaks the code I run every day, perhaps because the image-reading verbs I used to get from jqt are no longer there. On Su

Re: [Jprogramming] J806 beta-7

2017-10-29 Thread Joey K Tuttle
Downloaded 3 versions: j806_mac64.zip BETA - installed and runs on my AVX MacBookPro j806_mac64.zip NONAVX - installed and runs fine on my older iMac i7 j806_linux64.tar.gz NONAVX - no joy on my slightly too old Ubuntu/Linux In (nonavx) linux - jconsole fails with: Illegal instruction I t