[Jprogramming] I want to understand under

2014-04-04 Thread Linda Alvord
Here’s the problem f=: 13 :' (B=:;:''am pm''),~./A=:1 ::0:i.y' f 12 ┌┬┬┬┬┬┬┬── ──┬┬┬┬┐ │1 am│2 am│3 am│4 am│5 am│6 am│7 am│8 am│9 am│10am│11am│12am│ ├┼┼┼┼┼┼┼── ──┼┼┼┼┤ │1 pm│2 pm│3 pm│4 pm│5 pm│6 pm│7

[Jprogramming] I want to understand under

2014-04-04 Thread Linda Alvord
Here’s the problem. Hopefully this looks better and fully defines the problem. f=: 13 :' (B=:;:''am pm''),~./A=:1 ::0:i.y' f 12 ┌┬┬┬┬┬┬┬── ──┬┬┬┬┐ │1 am│2 am│3 am│4 am│5 am│6 am│7 am│8 am│9 am│10am│11am│12am│

Re: [Jprogramming] I want to understand under

2014-04-04 Thread Raul Miller
What is h supposed to be doing? Thanks, -- Raul On Fri, Apr 4, 2014 at 2:25 AM, Linda Alvord lindaalv...@verizon.netwrote: Here’s the problem. Hopefully this looks better and fully defines the problem. f=: 13 :' (B=:;:''am pm''),~./A=:1 ::0:i.y' f 12

Re: [Jprogramming] I want to understand under

2014-04-04 Thread Linda Alvord
Tbe same th -Original Message- From: programming-boun...@forums.jsoftware.com [mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Raul Miller Sent: Friday, April 04, 2014 4:02 AM To: Programming forum Subject: Re: [Jprogramming] I want to understand under What is h supposed

Re: [Jprogramming] I want to understand under

2014-04-04 Thread Linda Alvord
The two parts of the definition of Under are equivalent. X u.v y ↔ vi (v x) u (v y) Definition of Under I could write a defition of: . x u.v y ' But could not write a similar tacit verb for: vi (v x) u (v y) So: g=: 13 :'x(,~.)/y' B g A -Original Message- From:

Re: [Jprogramming] I want to understand under

2014-04-04 Thread Linda Alvord
The two parts of the definition of Under are equivalent. X u.v y ↔ vi (v x) u (v y) Definition of Under I could write a defition of: . x u.v y ' But could not write a similar tacit verb for: vi (v x) u (v y) So: A=:1 ::0:i.12 B=:;:'am pm' g=: 13 :'x(,~.)/y' B g A g

Re: [Jprogramming] Project Manager in J801

2014-04-04 Thread Pascal Jasmin
Its disconcerting for those of us who work primarily without projects to have all of our files go away.  I guess starting a  new J session would solve this.   Btw on OSX, there seems to be only one Jqt instance allowed. - Original Message - From: chris burke cbu...@jsoftware.com To:

Re: [Jprogramming] I want to understand under

2014-04-04 Thread Tracy Harms
The form you wish to match is not tacit, so if you write a tacit equivalent it will not be in that form. vi (v x) u (v y) The occurrences of x and y in this makes it explicit, i.e. stated as a noun, rather than tacit. -- For

Re: [Jprogramming] I want to understand under

2014-04-04 Thread Pascal Jasmin
the key to understanding . is to first understand , which has separate monad and dyad understandings.     2 ++: 3  10   2 +.+: 3  5  the vi part can be called as v inv   2 + (2 : (':';'v inv (v x) u v y')) +: 3  5 it gets more complicated with nested ones, but you don't understand it till

Re: [Jprogramming] I want to understand under

2014-04-04 Thread Dan Bron
Linda, every time you try to use x u.v y ↔ vi (v x) u (v y) to make a substitution, you must remember to respect rank (I know that one sentence in the definition of . doesn't say so explicitly, so you must remember for yourself). Open () is rank 0, i.e. operates on individual atoms, so

Re: [Jprogramming] Project Manager in J801

2014-04-04 Thread bill lam
The ide keeps snapshot of files so that there should not be any total loss of files during the ide session. Sorry if this is not related to your problem because I have no real experience in using snapshots. Пт, 04 апр 2014, Pascal Jasmin писал(а): Its disconcerting for those of us who work

[Jprogramming] Negative binomial random numbers

2014-04-04 Thread John Baker
As far as I can tell there is no negative binomial random number generator in stats/distribs. Before rolling my own I thought a quick query to the J'verse would be helpful. Does anyone have an reasonably efficient generator for negative binomials? Thanks in advance. -- John D. Baker

Re: [Jprogramming] I want to understand under

2014-04-04 Thread Dan Bron
I'm not quite sure of your question, but consider that, as you've given, 2 +*:+: 3 is 16+36 52 So, reinstating the dots (ie ➡️ .), we will _start_ with this result (52), and then apply various inverse functions to it. The next obvious questions are which functions and in what order?

Re: [Jprogramming] Negative binomial random numbers

2014-04-04 Thread Mike Day
I haven't rolled my own - at least not in a long while - might have done in APL yonks ago! But I see that R has a function rnegbin which is a Function to generate random outcomes from a Negative Binomial distribution, with mean|mu|and variance|mu + mu^2/theta|. And J's addons include an R

Re: [Jprogramming] Negative binomial random numbers

2014-04-04 Thread Brian Schott
Do you only need integer values for the one parameter? If so, there is a half page, 7 step, algorithm in my old copy of Fishman's simulation text I can photocopy for you. He has two other algorithm that require more complex computations such as Cauchy and Gamma and Poisson variates. -- (B=)

Re: [Jprogramming] Negative binomial random numbers

2014-04-04 Thread John Baker
Thanks guys, Unfortunately I need the nonintegral version which I believe is a ratio of gamma funcions - I'll have to look it up. The R route is not viable for me unless R can be installed without admin rights. The last time I looked one of the R interfaces was COM based which requires registry

Re: [Jprogramming] Negative binomial random numbers

2014-04-04 Thread Devon McCormick
I'd like to encourage J versions of things like this but I don't think R requires admin rights to install. On Fri, Apr 4, 2014 at 2:57 PM, John Baker bakerj...@gmail.com wrote: Thanks guys, Unfortunately I need the nonintegral version which I believe is a ratio of gamma funcions - I'll have

Re: [Jprogramming] Negative binomial random numbers

2014-04-04 Thread Stefano Lanzavecchia
Regarding COM, there's a now relatively old technology to do without the registration. Here's a random link on the subject: http://stackoverflow.com/questions/5132372/how-to-configure-registrationless-com-components I have not tried it yet but it looks interesting and there are free tools to

Re: [Jprogramming] Negative binomial random numbers

2014-04-04 Thread John Baker
I will take another look. Cheers On Fri, Apr 4, 2014 at 2:04 PM, Devon McCormick devon...@gmail.com wrote: I'd like to encourage J versions of things like this but I don't think R requires admin rights to install. On Fri, Apr 4, 2014 at 2:57 PM, John Baker bakerj...@gmail.com wrote:

Re: [Jprogramming] Negative binomial random numbers

2014-04-04 Thread Bo Jacoby
You know how to compute the probability    (r,p)NB y that the negatively binomially distributed variable assumes the nonnegative integer value  y , then compute the probability that it is less than or equal to, say, i.100    n=:+/\(r,p)NB i.100 A random number between 0 and 1    ?0 is

Re: [Jprogramming] Zeno and the superimposing clock hands puzzle

2014-04-04 Thread Don Kelly
Initially I would say that it was going perpendicularly to the track but as it is also in the process of reversing direction at this instant- it is indeterminate as well terminal for the fly Don Kelly On 03/04/2014 2:53 PM, Jose Mario Quintana wrote: Bonus question: Alright, the fly was

Re: [Jprogramming] Zeno and the superimposing clock hands puzzle

2014-04-04 Thread Roger Hui
A quick check indicates that terminate can be used as an adjective. Therefore, perhaps a better pun is to say ... it is indeterminate as well as terminate for the fly, with the last a pronounced as a short a. On Fri, Apr 4, 2014 at 2:43 PM, Don Kelly d...@shaw.ca wrote: Initially I would say

Re: [Jprogramming] J version of APL's { } anonymous (explicit) function syntax.

2014-04-04 Thread Don Kelly
There is a free version NARs-2000 http://www.nars2000.org/ Believe me- J is definitely faster, than this. I have had considerable APL experience -sufficient to recognize that J has advantages Admittedly, even for APL users, there is a learning curve- partly due to the power of J and partly

Re: [Jprogramming] Zeno and the superimposing clock hands puzzle

2014-04-04 Thread Don Kelly
Thanks- In any case, the fly is dead-so is Zeno (and the lawyers of his time).. Don On 04/04/2014 3:19 PM, Roger Hui wrote: A quick check indicates that terminate can be used as an adjective. Therefore, perhaps a better pun is to say ... it is indeterminate as well as terminate for the fly,