| MATLAB Central > MATLAB Newsreader > betainc speed or alternate implementation |
|
|
|
Subject: betainc speed or alternate implementation From: Rodrigo Date: 5 Jan, 2009 02:57:02 Message: 1 of 4 |
|
I need an implementation of the incomplete beta function (Matlab implements the regularized version which fails for the arguments I need to evaluate) and after looking through the betainc.m file I noticed that it calls the continued fraction algorithm betacore. As far as I know, this algorithm is perfectly capable of computing the values I need without divercences due to regularization. |
|
Subject: betainc speed or alternate implementation From: Steven Lord Date: 5 Jan, 2009 03:36:02 Message: 2 of 4 |
|
|
|
Subject: betainc speed or alternate implementation From: Rodrigo Date: 5 Jan, 2009 04:24:02 Message: 3 of 4 |
|
"Steven Lord" <slord@mathworks.com> wrote in message <gjrv72$7k5$1@fred.mathworks.com>... |
|
Subject: betainc speed or alternate implementation From: Rodrigo Date: 5 Jan, 2009 04:47:02 Message: 4 of 4 |
|
I am a bit confused now. I corrected a few unrelated bugs in the code (they multiplied the output of betacore) and the speed is not only comparable to betainc, its actually faster. I'll have to go back to make sure I didn't do any silly, but they seem to be numerically identical (up to round off in the routine they're embedded in). |
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.
| Tag Activity for This Thread | ||
|---|---|---|
| Tag | Applied By | Date/Time |
| beta | Rodrigo | 4 Jan, 2009 22:00:06 |
| betainc | Rodrigo | 4 Jan, 2009 22:00:06 |
| hypergeom | Rodrigo | 4 Jan, 2009 22:00:06 |
Contact us at files@mathworks.com
