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: NonePriority: 5 - Normal
Status: NonePrivacy: Public
Assigned to: NoneOpen/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 modules.mk 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>
Project Member
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 File(s):
   
   
Comment:
   

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
  • -unavailable- added by lachlan (Posted a comment)
  • -unavailable- added by nir_krakauer (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 logged-in users 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 08 Sep 2016 03:20:11 AM UTCnir_krakauerAttached File-=>Added tcdf_new.m, #38447
      Attached File-=>Added tcdf_integer_df.m, #38448
    Wed 17 Jun 2015 08:24:56 PM UTCnir_krakauerAttached File-=>Added tcdf_integer_df.m, #34249

    Back to the top


    Powered by Savane 3.1-cleanup1