"Raul Miller" <[EMAIL PROTECTED]> writes:

> I do not see cdf in http://www.cs.ualberta.ca/~smillie/Jpage/jsp.ijs
>
> On the other hand, the binomial verb from that page seems to work
> after I change x. -> x and y. -> y

That _did_ work.  Thanks.

> Perhaps you could describe how to reproduce your problem?

I had a jsp.ijs that I thought was that one.  It's got a section

,----
| NB. Differentiation and integration 
| D=. ("0)(D. 1)
| W=. +:(#.|[EMAIL PROTECTED])"0 1|:@(0:,%.@(^/[EMAIL PROTECTED])%>:@i=. 
i.@>:@+:)
| ew=. +/@(-@(<:@([EMAIL PROTECTED])[EMAIL PROTECTED])|."0 
1]{.~>:@([*<:@([EMAIL PROTECTED])))
| EW=. ([ ew [EMAIL PROTECTED]) f.
| ai=. 2 : 0
| ai=. +/@(x&space * x&[ * y@(x&grid))"0
| ) 
| grid=. space [EMAIL PROTECTED]@[
| space=. ] % <:@[EMAIL PROTECTED]
| I=. (4 EW 5) ai 
`----

that looks a lot like http://www.cs.ualberta.ca/~smillie/Jpage/jsp.ijs,
but it's clearly not identical.  The "offending" section includes

,----
| NB. Probability distributions
| cdf=. 1 : 0
| +/ @ ([ x f. (i. @ >: @ ]))
| )
| binomial=. (x!n) * (p^x) * ([EMAIL PROTECTED] {:@[) ^ ([EMAIL PROTECTED]) - 
x=. ] f.
| BINOMIAL=. binomial cdf
| poisson=. [EMAIL PROTECTED]@[ * ^ % [EMAIL PROTECTED]
| POISSON=. poisson cdf
`----

Note that the cdf adverb makes the distribution into an (uppercase)
cdf.  I don't see that in the current version; I must have had a really
old one.  I somehow thought it was the same.  BTW, the file I had has no
header at the start; it just begins

,----
| NB. General-purpose verbs
| B=. *&G % [EMAIL PROTECTED]
| BoxSort=. /:>
| COMB=. ([ comb [EMAIL PROTECTED]) { ]
`----

Thanks again,

Bill
-- 
Bill Harris                      http://facilitatedsystems.com/weblog/
Facilitated Systems                              Everett, WA 98208 USA
http://facilitatedsystems.com/                  phone: +1 425 337-5541

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to