patchGNU Octave - Patches: patch #10092, [octave forge] (statistics)...

 
 

patch #10092: [octave forge] (statistics) compatible expfit implementation

Submitter:  Nicholas Jankowski <nrjank>
Submitted:  Sat 07 Aug 2021 08:20:10 AM UTC
   
 
Category:  Forge : new function Priority:  5 - Normal
Status:  Done Privacy:  Public
Assigned to:  None Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 11 Aug 2021 07:23:49 PM UTC, comment #2: 

Thx for pushing Nir, thx for the contribution Nick.
Closing report.

Philip Nienhuis <philipnienhuis>
Group Member
Tue 10 Aug 2021 05:51:39 PM UTC, comment #1: 
Nir Krakauer <nir_krakauer>
Sat 07 Aug 2021 08:20:10 AM UTC, original submission:  

inspired by bug #38063, attached is a working, matlab compatible version of expfit for the statistics package.  It calculates the mean and confidence intervals for the mean of a sample of exponentially distributed data, allowing for right-censoring and adjustable sample frequency.

extending a bit from matlab capabilities, this expfit allows you to use censoring and frequency options with nD sample arrays, where matlab restricts their use to sample vectors only.

added BISTs for most input and option combinations and errors. all tests pass and help text renders without error. header text appears to match other functions in the package, although it differs from core octave.

patch also updates Index.in and NEWS.

Note - as discussed in the mentioned bug report, this will create a namespace collision with an expfit function in the optim package until that function is renamed.

m file attached. will make patch after getting a patch number.

Nicholas Jankowski <nrjank>
Group Member

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #51747:  statistics_add_expfit.diff added by nrjank (11KiB - application/octet-stream)
file #51746:  expfit.m added by nrjank (10KiB - text/plain - matlab compatible expfit function for statistics pkg)

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-08-11 philipnienhuis StatusNone Done
        Open/ClosedOpen Closed
    2021-08-07 nrjank Attached File- Added statistics_add_expfit.diff, #51747
    2021-08-07 nrjank Attached File- Added expfit.m, #51746
        Carbon-Copy- Added philipnienhuis

    Back to the top

    Powered by Savane 3.13-bb6a.
    Corresponding source code