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
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│
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
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
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:
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
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:
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
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
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
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
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
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?
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
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=)
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
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
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
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:
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
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
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
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
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,
24 matches
Mail list logo