patchGNU Octave - Patches: patch #8690, Alternative implementation of tcdf


patch #8690: Alternative implementation of tcdf

Submitted by:  Nir Krakauer <nir_krakauer>
Submitted on:  Wed 17 Jun 2015 08:24:56 PM UTC  
Category:  None Priority:  5 - Normal
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open

Add a New Comment (Rich Markup)

You are not logged in

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


Thu 08 Sep 2016 03:20:11 AM UTC, comment #2: 

Here is a reimplementation of tcdf.m that calls tcdf_integer_df for integer degrees of freedom. Test it, if you like, and report if there are any problems.

(file #38447, file #38448)

Nir Krakauer <nir_krakauer>
Wed 06 Jul 2016 02:01:40 PM UTC, comment #1: 

Nir, do you think this should be considered for 4.2.0?

If so, please provide a patch instead of the .m file.  (If this is a new file, it will need to be added to a file, and its docstring will need to be added to a .txi file.

Do you recommend that this be dispatched from tcdf.m or that users call it explicitly?  In the former case, it may be better to be a subfunction inside tcdf.m

Lachlan Andrew <lachlan>
Wed 17 Jun 2015 08:24:56 PM UTC, original submission:  

For the special (but common) case of integer degrees of freedom, the attached function avoids calling betainc, which considerably reduces computation time when tcdf needs to be found for many t-values under the same number of degrees of freedom.

Nir Krakauer <nir_krakauer>


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

Attach Files:

Attached Files
file #38447:  tcdf_new.m added by nir_krakauer (5KiB - application/octet-stream)
file #38448:  tcdf_integer_df.m added by nir_krakauer (3KiB - application/octet-stream)
file #34249:  tcdf_integer_df.m added by nir_krakauer (3KiB - text/x-objcsrc)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by lachlan (Posted a comment)
  • -email is unavailable- added by nir_krakauer (Submitted the item)

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

    Only logged-in users can vote.




    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-09-08 nir_krakauer Attached File- => Added tcdf_new.m, #38447
        Attached File- => Added tcdf_integer_df.m, #38448
    2015-06-17 nir_krakauer Attached File- => Added tcdf_integer_df.m, #34249

    Back to the top

    Powered by Savane 3.5