[Jprogramming] 2D & 3D Point Plots

2017-10-28 Thread 'Skip Cave' via Programming
As part of my NLP project, I need a way to plot 2D & 3D point cluster plots. Let's take the example in my previous email: (0 0, 2 _3 ,: _1 2) dis 1 1,_1 _2,:3 4 1.41421 3.16228 4.47214 In that distance calculation, their are 6 coordinate pairs, representing 6 points in x & y. The six points

Re: [Jprogramming] Partitions

2017-10-28 Thread Erling Hellenäs
Hi all ! Current state with Mike Days modification of Esa Lippus algorithm.I managed to improve my version. --- Project ... ts=: 6!:2 , 7!:2@]   NB. Time and space normalize=: 3 :0 NB. The idea here is to normalize the representation so that NB. the copies are adjacent. NB. Sort buckets w

Re: [Jprogramming] Euclidean Distance

2017-10-28 Thread 'Skip Cave' via Programming
Thanks to Raul & Esa for their very clear instructions and examples for plotting points in 2D space. I originally thought that my plot post was overlooked, so I re-posted it under a more descriptive title. Then I saw Raul & Esa's posts, so you can ignore that post. In any case, Raul & Esa's answer

[Jprogramming] stop manager in J602- simpler example

2017-10-28 Thread adam dunne
NB.***in ijs** f0=: 3 :0 f1 3 ) f1=:3 :0 a=.3+y b=.3+a c=.3+b ) ** In ijx: 13!:3'f0 0' f0 10 single step to f1[2] run cursor over f1[1] click on stop manager,then stop

Re: [Jprogramming] Partitions

2017-10-28 Thread 'Mike Day' via Programming
Thanks for the update, Erling. I’m looking for a constructive approach, which is perhaps what Raul has been exploring. It probably won’t improve matters, if ever I get my head round it. I won’t have access to email for another 24 hours or so, so don’t hold your breath! Meanwhile, I’m

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

2017-10-28 Thread Brian Schott
Skip, The subject of 3d scatterplots was discussed in 2007 without any real closure. I was able to get the plot suggested by Zach Reiter to work in jqt, But it does not have all the bells and whistles you require and it seems to connect the dots. Still it may be a good starting point. http://www.

[Jprogramming] stop manager inJ602

2017-10-28 Thread adam dunne
Got it! Have to specify calling function in 'In' part of stop manager -- For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] Partitions

2017-10-28 Thread Erling Hellenäs
Hi all ! I tried to analyse Mikes version. --- Project --- parMD=: 4 : 0 a =. ~. i.~"1 iy #: i. */ iy =. >: i.y a =. a#~ x = #@~."1 a sort a : i.y [v=: i. */ iy NB. You put item 0 in class 0. Now you can put item 1 there also NB. or you start a new class 1. You can put item y in class 0 t

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

2017-10-28 Thread 'Bo Jacoby' via Programming
try 'dot; pensize 5'plot 0j0 2j_3,: _1j2 1j1 _1j_2 3j4 /Bo. Den 17:50 lørdag den 28. oktober 2017 skrev Brian Schott : Skip, The subject of 3d scatterplots was discussed in 2007 without any real closure. I was able to get the plot suggested by Zach Reiter to work in jqt, But it does no

Re: [Jprogramming] Partitions

2017-10-28 Thread Erling Hellenäs
Hi all! Here is a reference to Knuth, and descriptions of how to enumerate these set partitions: https://math.stackexchange.com/questions/222780/enumeration-of-partitions There are solutions: http://www.informatik.uni-ulm.de/ni/Lehre/WS03/DMM/Software/partitions.pdf https://blogs.msdn.microsof

Re: [Jprogramming] Partitions

2017-10-28 Thread Erling Hellenäs
Algorithm 4.23 here maybe: http://www.1stworks.com/ref/ruskeycombgen.pdf /Erling On 2017-10-28 23:46, Erling Hellenäs wrote: Hi all! Here is a reference to Knuth, and descriptions of how to enumerate these set partitions: https://math.stackexchange.com/questions/222780/enumeration-of-partitio

Re: [Jprogramming] Partitions

2017-10-28 Thread Raul Miller
Here's a debugged version of par that seems to have reasonable performance (and good big-O structure): require'stats' par=: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. ,/

[Jprogramming] Random Numbers

2017-10-28 Thread 'Skip Cave' via Programming
I found this verb description in the Jsoftware website" rand11 random v generate y random numbers in interval (_1,1) ​Bu I can't find ​the actual code implementing the rand11 function anywhere on the Jsoftware site. Can anyone point m

Re: [Jprogramming] Random Numbers

2017-10-28 Thread robert therriault
I found it in j602 in this path ~/j602/system/packages/stats/random.ijs setrl=: 9!:1 deal=: (# ? #) : (? #) { ] dealx=: ] #: ?~ : ? & (*/) toss=: ? @ (# #) { ] tossx=: ] #: (?@# */) rand01=: ?@$ 0: rand11=: <: @: +: @: rand01 and it remains in the newest version of the j beta ~/j64-806/addons/s