bugGNU Octave - Bugs: bug #34364, Feature Request: Function to...

 
 

bug #34364: Feature Request: Function to compute inverse of incomplete Beta function

Submitted by:  Rik <rik5>
Submitted on:  Fri 23 Sep 2011 05:01:47 AM UTC  
 
Category: LibrariesSeverity: 1 - Wish
Priority: 5 - NormalItem Group: Feature Request
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: devOperating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 28 Jun 2012 05:56:03 PM UTC, comment #2:

Thanks so much. I checked in your changeset here (http://hg.savannah.gnu.org/hgweb/octave/rev/0a868d90436b). I ended up changing the way betainc worked to use the superclass Array rather than Matrix or NDArray. Thus, I went ahead and changed betaincinv to work the same way. I also added trivial support for class single variables (http://hg.savannah.gnu.org/hgweb/octave/rev/67897baaa05f).

Rik <rik5>
Project Administrator
Fri 22 Jun 2012 02:58:07 PM UTC, comment #1:

Here is a patch implementing this function in C++, adapted from the source cited by Rik.

(file #26085)

Axel Mathéi <amathei>
Fri 23 Sep 2011 05:01:47 AM UTC, original submission:

The inverse of the incomplete Beta function is a useful function that could be used to simplify the statistical functions nbininv, binoinv, betainv (See bug #34363).

Matlab provides this function under the name betaincinv (http://www.mathworks.com/help/techdoc/ref/betaincinv.html).

LGPL versions of the algorithm are available in m-file format at http://people.sc.fsu.edu/~jburkardt/m_src/asa109/asa109.html. The file in question is xintba.m

Because the implementation uses while loops, it may be better to eventually adopt either the Fortran or the C++ version of the algorithm. As a first step, however, it would be great if someone could modify xintba.m to use Octave coding standards and add it to the specfun directory under the name betaincinv.m

Rik <rik5>
Project Administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #26085:  betaincinv.patch added by amathei (21KiB - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by amathei (Updated the item)
  • -unavailable- added by rik5 (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 28 Jun 2012 05:56:03 PM UTCrik5StatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Fri 22 Jun 2012 02:58:07 PM UTCamatheiAttached File-=>Added betaincinv.patch, #26085

    Back to the top


    Powered by Savane 3.1-cleanup1