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

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

[Octave-bug-tracker] [bug #55765] Missing function: normalize (same func


From: Nicholas Jankowski
Subject: [Octave-bug-tracker] [bug #55765] Missing function: normalize (same function name used in ltfat pkg)
Date: Mon, 14 Dec 2020 01:28:29 -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 #4, bug #55765 (project octave):

attached is an implementation of a matlab compatible normalize.m and a patch
to add it to /scripts/statistics in octave core.  It implements all of the the
different options/methods except for DataVariable, as that depends on Tables
objects that have not yet been implemented. the input handling is in place
however once that can be implemented. 

It handles most all of the oddities of the Matlab version including inf and
nan handling, except for a few specific NaN containing inputs. Matlab has ways
of skipping over NaN inputs and processing the rest of the vector as if it
wasn't there (like NaNflag options in some other functions) that don't appear
trivial to emulate. 

BISTs are added for all of the options.  I left in two xtests for particular
NaN incompatibilities mentioned above.

note that a few options depend on the modified matlab compatible iqr
implemented in bug #59636. breaking that dependency would require adding in a
lot more input/option processing the few places it's used. 


Last, i realize this will create a situation where ltfat's normalize would
shadow this one.  The maintainer noted on github that they noted the potential
namechange in their release. 

(file #50456, file #50457)
    _______________________________________________________

Additional Item Attachment:

File name: normalize.m                    Size:20 KB
    <https://file.savannah.gnu.org/file/normalize.m?file_id=50456>

File name: add_normalize.diff             Size:22 KB
    <https://file.savannah.gnu.org/file/add_normalize.diff?file_id=50457>



    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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