Thanks for the useful emails. I need to digest their content and see how I
might use them. In the meantime, I did a line-by-line translation of Jim
Weigang's APL code into J and initial testing looks favorable. I will beat on
it harder over the next couple of days before declaring it finished. If anyone
would like the code, I can post it here. Most of the translation was
straightforward, except for one line in APL that does this:
APL: 1 0 0 1 0 0 0 1 0\1 2 3 gives the result: 1 0 0 2 0 0 0 3 0
but I did not know how to easily do this in J, so I used a line of code
recently posted in the J-forum as:
expand=:4 : '((I. x.) i. i. # x.){y.,0'
implemented as 1 0 0 1 0 0 0 1 0 expand 1 2 3 to achieve the desired result.
this of course works fine but I was surprised that I could not find a "shorter"
method for doing it. Is there one?
________________________________
From: [EMAIL PROTECTED] on behalf of Roger Hui
Sent: Sun 3/4/2007 10:21 AM
To: Programming forum
Subject: Re: [Jprogramming] Inverse F Distribution
I have never seen one in J. If you can provide a
link to Jim Weigang's APL function perhaps members
of the Forum can translate it.
I have some thoughts of doing more of the standard
functions in
http://www.jsoftware.com/jwiki/Essays/Extended_Precision_Functions
The F distribution and the inverse F are currently
not in the list.
----- Original Message -----
From: "Howell, Leonard" <[EMAIL PROTECTED]>
Date: Sunday, March 4, 2007 3:08 am
Subject: [Jprogramming] Inverse F Distribution
> Anyone have J code for accurately computing the inverse to the
> cumulative F distribution? An internet search turned up a
> discussion by Jim Weigang and Roger Hui around 1995 but I can't
> seem to find the J code for performing the task. I did download
> Jim Weigang's code and ran it in APL, but need it in J for my
> present application and prefer not to translate Jim's APL code
> into J if I can help it. Thanks, Leonard
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm