octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #59636] iqr function does not produce Matlab c


From: Nicholas Jankowski
Subject: [Octave-bug-tracker] [bug #59636] iqr function does not produce Matlab compatible output
Date: Fri, 11 Dec 2020 14:54:16 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36

Follow-up Comment #7, bug #59636 (project octave):

attached is a patch to replace the current iqr with one that produces matlab
compatible output and is about 10x faster as well. it handles n-dimensional
vectors, vector dimensions, and "all", and compatibly handles NaNs and Infs. a
few BISTS added for verification. 

It doesn't handle probability distribution class inputs, as Octave has no such
class implemented yet. left as a TODO.

Most of the code is checks on the type of DIM specified, and permutations to
handle when its a vec. that said the slowest part is the handoff to quantile
which makes heavy use of repmat. 

patch and function attached. patch also adds note to NEWS.

**note - i did not yet grep octave or the statistics toolbox to see if
anything using the old iqr has BISTS that break from changing to matlab
compatible quantile.

(file #50442, file #50443)
    _______________________________________________________

Additional Item Attachment:

File name: replace_iqr.diff               Size:14 KB
    <https://file.savannah.gnu.org/file/replace_iqr.diff?file_id=50442>

File name: iqr.m                          Size:9 KB
    <https://file.savannah.gnu.org/file/iqr.m?file_id=50443>



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?59636>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]